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:
parent
a9491dacb7
commit
88b3c9f506
1 changed files with 5 additions and 2 deletions
|
@ -158,7 +158,10 @@ 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'):
|
||||||
|
if ctx.command.name == command:
|
||||||
|
return
|
||||||
|
|
||||||
u.last_commands[ctx.author.id] = ctx
|
u.last_commands[ctx.author.id] = ctx
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
|
Loading…
Reference in a new issue