From 365582dcc3641e59b0db85ba3a5c9f2705a12a92 Mon Sep 17 00:00:00 2001 From: Eriks Karls Date: Thu, 2 Jan 2020 13:59:40 +0200 Subject: [PATCH] reporter --- discord_bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/discord_bot.py b/discord_bot.py index 55b0693..5e129be 100644 --- a/discord_bot.py +++ b/discord_bot.py @@ -107,8 +107,8 @@ class MyClient(discord.Client): async def on_ready(self): print('Client loaded') - print(self.user.name) - print(self.user.id) + # print(self.user.name) + # print(self.user.id) print('------') async def report_hunted_medals(self): @@ -120,7 +120,7 @@ class MyClient(discord.Client): for bid, battle in r.get('battles', {}).items(): for div in battle.get('div', {}).values(): if div['stats'] and not div['end']: - for side, side_data in div['stats']: + for side, side_data in div['stats'].items(): if side_data and side_data['citizenId'] in hunted_ids: pid = side_data['citizenId'] medal_key = (pid, bid, div['div'], battle[side]['id'], side_data['damage']) @@ -151,8 +151,8 @@ if __name__ == "__main__": @bot.event async def on_ready(): print('Bot loaded') - print(bot.user.name) - print(bot.user.id) + # print(bot.user.name) + # print(bot.user.id) print('------')