Skip to content

Commit

Permalink
fix: update logs_bot to use channel id not name
Browse files Browse the repository at this point in the history
  • Loading branch information
PBillingsby authored Oct 15, 2024
1 parent b85ec86 commit 71d6ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logs_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ async def on_message(message):
if message.author == bot.user:
return

# If the message is in a thread under the 'i-need-help' forum channel and contains attachments
if isinstance(message.channel, discord.Thread) and message.channel.parent.name == '🙋🏻│i-need-help' and message.attachments:
# If the message is in a thread under the 'i-need-help' forum channel using ID and contains attachments
if isinstance(message.channel, discord.Thread) and message.channel.parent_id == 1230231823674642513 and message.attachments:
for attachment in message.attachments:
if attachment.filename.lower().endswith(('.png', '.jpg', '.jpeg', '.avif', '.webp')):
try:
Expand Down

0 comments on commit 71d6ccc

Please sign in to comment.