Added ignore channels/servers capabilities

Changed !help behaviour
This commit is contained in:
Twentysix
2016-02-13 09:46:25 +01:00
parent 6def723347
commit a86389c9e8
2 changed files with 114 additions and 15 deletions

9
red.py
View File

@@ -26,7 +26,7 @@ Red - A multifunction Discord bot by Twentysix
formatter = commands.HelpFormatter(show_check_failure=False)
bot = commands.Bot(command_prefix=["_"], formatter=formatter,
description=description, pm_help=True)
description=description, pm_help=None)
lock = False
@@ -65,6 +65,13 @@ async def on_message(message):
if author.id not in mod.whitelist_list:
return
if not message.channel.is_private:
if message.server.id in mod.ignore_list["SERVERS"]:
return
if message.channel.id in mod.ignore_list["CHANNELS"]:
return
await bot.process_commands(message)
@bot.command()