🔀 Fixed startup syncing

  Fixed startup syncing
This commit is contained in:
NikolajDanger
2021-06-14 18:28:49 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@
"description" : "Searches for and gets the info for a wiki page", "description" : "Searches for and gets the info for a wiki page",
"options" : [ "options" : [
{ {
"name" : "wikiPage", "name" : "page",
"description" : "The page to find", "description" : "The page to find",
"type" : 3, "type" : 3,
"required" : "false" "required" : "false"

View File

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