Attempt to block commands on #newcomers
This commit is contained in:
parent
4a54e2caa8
commit
0786f29bca
1 changed files with 5 additions and 0 deletions
|
@ -185,6 +185,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
|
||||
if message.channel.id == config.welcome_channel and\
|
||||
"reset" not in message.content:
|
||||
return
|
||||
|
||||
ctx = await bot.get_context(message)
|
||||
await bot.invoke(ctx)
|
||||
|
||||
|
|
Loading…
Reference in a new issue