From 22aa1787e3c42f917d8355f4822f3251a04275f6 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 20 Nov 2017 06:11:05 -0500 Subject: [PATCH] Added settings group command, moving delcmds and setprefix --- src/main/cogs/management.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/cogs/management.py b/src/main/cogs/management.py index 805283d..a2c8351 100644 --- a/src/main/cogs/management.py +++ b/src/main/cogs/management.py @@ -173,9 +173,13 @@ class Administration: await ctx.send('**Already auto-deleting in {}.** Type `stop` to stop.'.format(ctx.channel.mention), delete_after=7) await ctx.message.add_reaction('\N{CROSS MARK}') - @commands.command(name='deletecommands', aliases=['delcmds']) + @commands.group(aliases=['setting', 'set', 's']) @commands.has_permissions(administrator=True) - async def delete_commands(self, ctx): + async def settings(self, ctx): + pass + + @settings.command(name='deletecommands', aliases=['delcmds', 'delcmd']) + async def _settings_delete_commands(self, ctx): if ctx.guild.id not in u.settings['del_ctx']: u.settings['del_ctx'].append(ctx.guild.id) else: @@ -184,9 +188,6 @@ class Administration: await ctx.send('**Delete command invocations:** `{}`'.format(ctx.guild.id in u.settings['del_ctx'])) - @commands.command(name='setprefix', aliases=['setpre', 'spre']) - @commands.has_permissions(administrator=True) - async def set_prefix(self, ctx, prefix=None): if prefix is not None: u.settings['prefixes'][ctx.guild.id] = prefix else: