mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Added lastcommand
This commit is contained in:
parent
852fe6b5a7
commit
5bb47547bd
2 changed files with 7 additions and 0 deletions
|
@ -105,6 +105,12 @@ async def on_command_error(ctx, error):
|
|||
await ctx.message.add_reaction('\N{WARNING SIGN}')
|
||||
# u.notify('C O M M A N D E R R O R')
|
||||
|
||||
@bot.event
|
||||
async def on_command_completion(ctx):
|
||||
|
||||
if ctx.command.name != 'lastcommand':
|
||||
u.last_commands[ctx.author.id] = ctx
|
||||
|
||||
# d.opus.load_opus('opus')
|
||||
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ temp = setdefault('temp.pkl', {})
|
|||
RATE_LIMIT = 2.2
|
||||
color = d.Color(0x1A1A1A)
|
||||
session = aiohttp.ClientSession()
|
||||
last_commands = {}
|
||||
|
||||
|
||||
# async def clear(obj, interval=10 * 60, replace=None):
|
||||
|
|
Loading…
Reference in a new issue