diff --git a/code/bot.py b/code/bot.py index da23a28..e8c6573 100644 --- a/code/bot.py +++ b/code/bot.py @@ -14,7 +14,7 @@ class MyBot(commands.Bot): command_prefix="***", activity=discord.Game(name="music!"), intents=discord.Intents.default(), - tree_cls=Tree + tree_cls=Tree, ) async def setup_hook(self): @@ -23,7 +23,9 @@ class MyBot(commands.Bot): for ext in os.listdir("./code/cogs"): if ext.endswith(".py"): if ext[:-3] == "feedback" and config.FEEDBACK_CHANNEL_ID == None: - config.LOG.info("Skipped loading feedback cog - channel ID not provided") + config.LOG.info( + "Skipped loading feedback cog - channel ID not provided" + ) continue if ext[:-3] == "bug" and config.BUG_CHANNEL_ID == None: config.LOG.info("Skipped loading bug cog - channel ID not provided") @@ -50,7 +52,7 @@ async def on_ready(): @bot.event async def on_command_error(ctx, error): - return + return @tasks.loop(minutes=45) @@ -68,4 +70,4 @@ async def get_access_token(): if __name__ == "__main__": config.load_config() - bot.run(config.TOKEN) \ No newline at end of file + bot.run(config.TOKEN)