Skip to content

Commit

Permalink
fix a wierd bug I had
Browse files Browse the repository at this point in the history
Seems like things went crazy for some reason...
  • Loading branch information
kytpbs committed Sep 25, 2023
1 parent faffca6 commit 02132c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ async def on_message(self, message: discord.Message):
time = datetime.now().strftime("%H:%M:")
if guild is None:
guild = "DM"
data = f'{str(time)} {str(guild)} {str(channel)} {str(user.name)}: {str(message_content)}'
logging.debug(data, message.embeds if len(message.embeds) > 0 else "No embeds")
data = f'{str(guild)} {str(channel)} / {str(user.name)}: {str(message_content)}'
logging.getLogger("chat").debug(data)

if message.author == self.user:
return
Expand Down

0 comments on commit 02132c3

Please sign in to comment.