Просмотр исходного кода

Change function logging when connecting to discord

Andy Esnard 1 год назад
Родитель
Сommit
429be72da6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      chatbot.py

+ 1 - 1
chatbot.py

@@ -123,7 +123,7 @@ async def call_openai_api(user_id, user_text, image_data=None):
 
 @client_discord.event
 async def on_ready():
-    print(f'Bot connecté en tant que {client_discord.user}')
+    logger.info(f'Bot connecté en tant que {client_discord.user}')
 
 @client_discord.event
 async def on_message(message):