diff --git a/Robocop.py b/Robocop.py index efef247..371514e 100755 --- a/Robocop.py +++ b/Robocop.py @@ -190,9 +190,11 @@ async def on_message(message): if (message.guild) and (message.guild.id not in config.guild_whitelist): return - # Ignore messages in newcomers channel, unless it's potentially reset + # Ignore messages in newcomers channel, unless it's potentially + # an allowed command + welcome_allowed = ["reset", "kick", "ban", "warn"] if message.channel.id == config.welcome_channel and\ - "reset" not in message.content: + not any(cmd in message.content for cmd in welcome_allowed): return ctx = await bot.get_context(message)