From 0823c19b941f62c8132940938af62743b2c90bc9 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 8 Mar 2017 00:25:17 -0600 Subject: [PATCH] Convert int ID to a string, as that is required by rethinkdb --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 22ea832..c59df6c 100644 --- a/bot.py +++ b/bot.py @@ -60,7 +60,7 @@ async def process_command(ctx): # Add one to the author's usage for this command total_member_usage = command_usage.get('member_usage', {}) member_usage = total_member_usage.get(author.id, 0) + 1 - total_member_usage[author.id] = member_usage + total_member_usage[str(author.id)] = member_usage command_usage['member_usage'] = total_member_usage # Add one to the server's usage for this command