diff --git a/DSbot.py b/DSbot.py index 4f79521..53f2ce2 100644 --- a/DSbot.py +++ b/DSbot.py @@ -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