mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Added multiple commands to lastcommand blacklist
This commit is contained in:
parent
a9491dacb7
commit
88b3c9f506
1 changed files with 5 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue