Fixed startup syncing

This commit is contained in:
Nikolaj committed 2021-06-14 18:28:07 +02:00
1 parent e247a010f2
commit 88e214a938
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ class databaseFuncs():
lastSynced = collection.find_one()
now = time.time()
if lastSynced["last synced"] < now - 86400:
slashCommandList = str(await self.bot.slash.to_dict())
slashCommandList = await self.bot.slash.to_dict()
self.bot.log(f"Updating commands: {slashCommandList}")
await self.bot.slash.sync_all_commands()
idNumber = lastSynced["_id"]