From 88b3c9f5068172426986eb67f4f903f07ed3ae72 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 20 Nov 2017 11:28:33 -0500 Subject: [PATCH] Added multiple commands to lastcommand blacklist --- src/main/run.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/run.py b/src/main/run.py index 3098ecd..6130920 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -158,8 +158,11 @@ async def on_command_completion(ctx): await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}') - if ctx.command.name != 'lastcommand': - u.last_commands[ctx.author.id] = ctx + for command in ('lastcommand', ',restart', ',die'): + if ctx.command.name == command: + return + + u.last_commands[ctx.author.id] = ctx @bot.event async def on_guild_remove(guild):