Disable system checking for various commands

This commit is contained in:
Ske
2018-07-27 07:29:10 +02:00
parent 2806feb7dc
commit 14f8eb9d66
4 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ from pluralkit.bot.commands import *
logger = logging.getLogger("pluralkit.commands")
@command(cmd="mod log", usage="[channel]", description="Sets the bot to log events to a specified channel. Leave blank to disable.", category="Moderation commands")
@command(cmd="mod log", usage="[channel]", description="Sets the bot to log events to a specified channel. Leave blank to disable.", category="Moderation commands", system_required=False)
async def set_log(ctx: CommandContext, args: List[str]):
if not ctx.message.author.server_permissions.administrator:
raise CommandError("You must be a server administrator to use this command.")