Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan committed Jun 5, 2024
1 parent ff0766d commit 59c9c60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cogs/Eden2Cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,18 @@ async def on_message(self, message: discord.Message) -> None:
return

trigger_reply = is_mentioned(message, self.bot.user)
print("trig reply", trigger_reply)
if not trigger_reply:
return

if message.channel.id != 1186378591118839808 and message.channel.id != 1006143747588898849:
return

print("got here..", message.content)
global thread_id
content = replace_bot_mention(message.content, only_first=True)
content = replace_mentions_with_usernames(content, message.mentions)

print("content", content)
# Check if the message is a reply
if message.reference:
source_message = await message.channel.fetch_message(message.reference.message_id)
Expand Down

0 comments on commit 59c9c60

Please sign in to comment.