1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-02 05:02:39 +00:00

Added lastcommand

This commit is contained in:
Myned 2017-11-19 11:40:08 -05:00
parent 852fe6b5a7
commit 5bb47547bd
2 changed files with 7 additions and 0 deletions

View file

@ -105,6 +105,12 @@ async def on_command_error(ctx, error):
await ctx.message.add_reaction('\N{WARNING SIGN}') await ctx.message.add_reaction('\N{WARNING SIGN}')
# u.notify('C O M M A N D E R R O R') # 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') # d.opus.load_opus('opus')

View file

@ -71,6 +71,7 @@ temp = setdefault('temp.pkl', {})
RATE_LIMIT = 2.2 RATE_LIMIT = 2.2
color = d.Color(0x1A1A1A) color = d.Color(0x1A1A1A)
session = aiohttp.ClientSession() session = aiohttp.ClientSession()
last_commands = {}
# async def clear(obj, interval=10 * 60, replace=None): # async def clear(obj, interval=10 * 60, replace=None):