This commit is contained in:
driftywinds
2025-05-11 17:33:12 +00:00
parent 1cae8e5ac4
commit 56a1f0edfc

View File

@@ -111,7 +111,9 @@ async def on_message(message):
return
# Channel check
if message.channel.id not in ALLOWED_CHANNELS:
# the below line will make it so the bot does not reply in DMs
# if message.channel.id not in ALLOWED_CHANNELS:
if not isinstance(message.channel, discord.DMChannel) and message.channel.id not in ALLOWED_CHANNELS:
return
# Command prefix check