diff --git a/bot.py b/bot.py index f787f79..65a7894 100644 --- a/bot.py +++ b/bot.py @@ -292,7 +292,6 @@ logger.info("Done") # *=========================================== Create Client logger.info("Creating discord bot") client = commands.Bot(intents=intents, command_prefix="$") -client.load_extension("voice_recognition") logger.info("Done") logger.info("Creating flask app") logger.info("Done") @@ -303,6 +302,8 @@ logger.info("Done") async def on_ready(): """Metoda wywoływana przy połączeniu do serwera.""" logger.debug("%s has connected to Discord!", client.user) + client.load_extension("voice_recognition") + await client.change_presence(activity=discord.Game(name="Axe Throwing Darts")) await client.tree.sync() check_self.start()