diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-05-14 20:04:59 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-05-14 20:04:59 +0000 |
commit | 683fdd8a871e96b9387b33d22384a3212c8ba091 (patch) | |
tree | 400730960d5bc81df0301c94e41be0a28fd45df7 /cogs/admin.py | |
parent | c59e677819055e5322898063332368b575088552 (diff) | |
download | steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.tar steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.tar.gz steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.tar.bz2 steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.tar.lz steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.tar.xz steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.tar.zst steve-bot-683fdd8a871e96b9387b33d22384a3212c8ba091.zip |
Added reject, approve and delete commands, among other improvements
Diffstat (limited to 'cogs/admin.py')
-rwxr-xr-x | cogs/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cogs/admin.py b/cogs/admin.py index cf9d8a5..b3cc4f2 100755 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -13,7 +13,7 @@ class Admin(commands.Cog): @commands.command(aliases=['addcommand', 'newcommand']) @commands.check(is_mod) async def setcommand(self, ctx, command, *, message): - self.bot.custom_commands["/" + command] = message + self.bot.custom_commands[ctx.prefix + command] = message with open('custom_commands.json', 'w') as f: json.dump(self.bot.custom_commands, f) @@ -22,7 +22,7 @@ class Admin(commands.Cog): @commands.command(aliases=['deletecommand']) @commands.check(is_mod) async def removecommand(self, ctx, command): - del self.bot.custom_commands["/" + command] + del self.bot.custom_commands[ctx.prefix + command] with open('custom_commands.json', 'w') as f: json.dump(self.bot.custom_commands, f) |