1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 14:47:29 +00:00

Added multiple commands to lastcommand blacklist

This commit is contained in:
Myned 2017-11-20 11:28:33 -05:00
parent a9491dacb7
commit 88b3c9f506

View file

@ -158,8 +158,11 @@ async def on_command_completion(ctx):
await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}') await ctx.message.add_reaction('\N{WHITE HEAVY CHECK MARK}')
if ctx.command.name != 'lastcommand': for command in ('lastcommand', ',restart', ',die'):
u.last_commands[ctx.author.id] = ctx if ctx.command.name == command:
return
u.last_commands[ctx.author.id] = ctx
@bot.event @bot.event
async def on_guild_remove(guild): async def on_guild_remove(guild):