mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Added ignore channels/servers capabilities
Changed !help behaviour
This commit is contained in:
9
red.py
9
red.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user