Skip to content

Commit

Permalink
Remove log of every message on the console
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Oct 12, 2023
1 parent 4d82e21 commit 62d8122
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ async def on_message(self, message):
channel = message.channel

# Do a log on the Python console
if message.guild is not None:
logging.info(f'{username} said: "{user_msg}" #{channel} in {message.guild.name}')
else:
logging.info(f'{username} said: "{user_msg}" in Direct Message')
# if message.guild is not None:
# logging.info(f'{username} said: "{user_msg}" #{channel} in {message.guild.name}')
# else:
# logging.info(f'{username} said: "{user_msg}" in Direct Message')

# Call responses with message of the user and responds if necessary
response = await responses(self, user_msg, channel)
Expand Down

0 comments on commit 62d8122

Please sign in to comment.