This commit is contained in:
2024-08-15 16:51:24 +02:00
parent fd23518f7a
commit 63fb7a3b8a
+2 -1
View File
@@ -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()