diff --git a/Normal.py b/Normal.py index 0a5b424..038e375 100644 --- a/Normal.py +++ b/Normal.py @@ -183,9 +183,13 @@ def is_valid_message(self, message): message.author == self.user or message.guild is None or message.guild.id not in self.allowed_guilds or - message.channel.id not in Config.Channels + ( + message.channel.id not in Config.Channels and + not any(message.channel.id in subchannels for subchannels in Config.Channels.values()) + ) ) + def get_main_channel_id(self, channel_id): for main_channel, sub_channels in Config.Channels.items(): if channel_id == main_channel or channel_id in sub_channels: