1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

Corrected an error where the message wasn't being detected correctly

This commit is contained in:
Phxntxm 2017-01-27 15:42:46 -06:00
parent 556c22b9ad
commit 4d028e6d49

2
bot.py
View file

@ -66,7 +66,7 @@ async def process_command(ctx):
command_usage['member_usage'] = total_member_usage
# Add one to the server's usage for this command
if message.server is not None:
if ctx.message.server is not None:
total_server_usage = command_usage.get('server_usage', {})
server_usage = total_server_usage.get(server.id, 0) + 1
total_server_usage[server.id] = server_usage