1
0
Fork 0
mirror of synced 2024-05-16 18:42:22 +12:00

Corrected how to start command_usage entry

This commit is contained in:
phxntxm 2016-09-29 00:08:17 -05:00
parent 50dcecdfc8
commit ef0c4e34aa

2
bot.py
View file

@ -105,7 +105,7 @@ async def process_command(command, ctx):
r_filter = {'command': command.qualified_name}
command_usage = await config.get_content('command_usage', r_filter)
if command_usage is None:
command_usage = {}
command_usage = {'command': command.qualified_name}
else:
command_usage = command_usage[0]
# Add one to the total usage for this command, basing it off 0 to start with (obviously)