From 00114458000ad5470865bb1eb6e298480632a81b Mon Sep 17 00:00:00 2001 From: Purpur <43528123+Pemigrade@users.noreply.github.com> Date: Sun, 10 Jan 2021 05:51:23 -0600 Subject: [PATCH] Update linking_updater.py --- cogs/linking_updater.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/linking_updater.py b/cogs/linking_updater.py index 0e01d69..672cace 100644 --- a/cogs/linking_updater.py +++ b/cogs/linking_updater.py @@ -29,10 +29,13 @@ class Linking_updater(commands.Cog): file.close() guild = self.bot.get_guild(guild_id) i = -1 + print("1") for client in data['users']: + print("2") i += 1 member = guild.get_member(client['discord_id']) if member: + print("3") api_key = client['client_api_key'] url = "https://panel.birdflop.com/api/client" headers = { @@ -41,8 +44,9 @@ class Linking_updater(commands.Cog): } async with aiohttp.ClientSession() as session: async with session.get(url, headers=headers) as response: + print("4") if response.status == 200: - logging.info("200") + print("5") # Formats response for servers in JSON format servers_json_response = await response.json()