From c7d89333ad96f977d21af3d9e719012d1918230d Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Wed, 29 Mar 2023 20:02:41 +0200 Subject: [PATCH] On direct messages respond also on ignored channels. --- fjerkroa_bot/discord_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fjerkroa_bot/discord_bot.py b/fjerkroa_bot/discord_bot.py index cceb2ce..0d69aac 100644 --- a/fjerkroa_bot/discord_bot.py +++ b/fjerkroa_bot/discord_bot.py @@ -87,7 +87,7 @@ class FjerkroaBot(commands.Bot): channel_name = str(channel.name) except Exception: channel_name = str(channel.id) - if channel_name in self.config.get('ignore-channels', []): + if channel_name in self.config.get('ignore-channels', []) and not message.direct: logging.info(f"ignore message {repr(message)} for channel {channel_name}") return logging.info(f"handle message {repr(message)} for channel {channel_name}")