Skip to content

Commit

Permalink
change thread again
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan committed Jul 31, 2024
1 parent cbbc592 commit 4799ac7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cogs/Eden2Cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ async def on_message(self, message: discord.Message) -> None:

is_dm = message.channel.type == discord.ChannelType.private
if is_dm:
thread_name = f"discord3-DM-{message.author.name}-{message.author.id}"
thread_name = f"discord4-DM-{message.author.name}-{message.author.id}"
dm_whitelist = [494760194203451393, 623923865864765452, 404322488215142410, 363287706798653441, 142466375024115712, 598627733576089681, 551619012140990465]
if message.author.id not in dm_whitelist:
return
else:
thread_name = f"discord3-{message.guild.name}-{message.channel.id}-{message.author.id}"
thread_name = f"discord4-{message.guild.name}-{message.channel.id}-{message.author.id}"
trigger_reply = is_mentioned(message, self.bot.user)
if not trigger_reply:
return
Expand Down Expand Up @@ -89,7 +89,7 @@ async def on_message(self, message: discord.Message) -> None:
print(ran, content)
# print(chat_message)

print("look for", f"discord3-{message.channel.id}-{message.author.id}")
print("look for", f"discord4-{message.channel.id}-{message.author.id}")
thread_id = client.get_or_create_thread(thread_name)
print("thread id", thread_id)

Expand Down

0 comments on commit 4799ac7

Please sign in to comment.