Skip to content

Commit

Permalink
new threads
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan committed Jul 17, 2024
1 parent 8d2b5a5 commit 321ac72
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cogs/Eden2Cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ async def on_message(self, message: discord.Message) -> None:

is_dm = message.channel.type == discord.ChannelType.private
if is_dm:
thread_name = f"discord-DM-{message.author.name}-{message.author.id}"
thread_name = f"discord0-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"discord-{message.guild.name}-{message.channel.id}-{message.author.id}"
trigger_reply = is_mentioned(message, self.bot.user)
thread_name = f"discord0-{message.guild.name}-{message.channel.id}-{message.author.id}"
trigger_reply = True #is_mentioned(message, self.bot.user)
if not trigger_reply:
return
if message.channel.id != 1186378591118839808 and message.channel.id != 1006143747588898849:
Expand All @@ -80,6 +80,7 @@ async def on_message(self, message: discord.Message) -> None:
"attachments": [attachment.url for attachment in message.attachments],
"settings": {}
}
print("chat message", chat_message)

ctx = await self.bot.get_context(message)
async with ctx.channel.typing():
Expand Down

0 comments on commit 321ac72

Please sign in to comment.