Corrected how to start command_usage entry
This commit is contained in:
parent
50dcecdfc8
commit
ef0c4e34aa
2
bot.py
2
bot.py
|
@ -105,7 +105,7 @@ async def process_command(command, ctx):
|
||||||
r_filter = {'command': command.qualified_name}
|
r_filter = {'command': command.qualified_name}
|
||||||
command_usage = await config.get_content('command_usage', r_filter)
|
command_usage = await config.get_content('command_usage', r_filter)
|
||||||
if command_usage is None:
|
if command_usage is None:
|
||||||
command_usage = {}
|
command_usage = {'command': command.qualified_name}
|
||||||
else:
|
else:
|
||||||
command_usage = command_usage[0]
|
command_usage = command_usage[0]
|
||||||
# Add one to the total usage for this command, basing it off 0 to start with (obviously)
|
# Add one to the total usage for this command, basing it off 0 to start with (obviously)
|
||||||
|
|
Loading…
Reference in a new issue