Skip to content

Commit

Permalink
Version 4.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisHobden committed Jun 21, 2021
1 parent 51d50d7 commit c8b392b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ async def on_ready():
setattr(client, "whitelisted_bot_ids", config.get("Bot", "WhitelistedBotIds").split(" "))
await slash.sync_all_commands()


if __name__ == '__main__':
token = config.get("Env", "Token")

for extension in extensions:
try:
client.load_extension(extension)
except Exception as e:
print('Failed to load extension {}\n{}: {}'.format(extension, type(e).__name__, e))


if __name__ == '__main__':
token = config.get("Env", "Token")

client.help_command = MinimalHelpCommand()
client.run(token)
2 changes: 1 addition & 1 deletion cogs/starboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def cleaner(self):
await self._update_starred_message(message_to_check, new_embed)
except Exception as e:
# For debug purposes, temporarily widening error handling to find Webhook errors.
logger.error("There was an error running the starboard: {}".format(e), message_id=message_to_check.message_id)
logger.error("[{}] There was an error running the starboard: {}".format(message_to_check.message_id, e))

@cleaner.before_loop
async def before_cleaner(self):
Expand Down

0 comments on commit c8b392b

Please sign in to comment.