From 32ace2f19e5d4025fbe2f02c7344c7599ce09bb4 Mon Sep 17 00:00:00 2001 From: Noikoio Date: Fri, 7 Dec 2018 21:17:44 -0800 Subject: [PATCH] Update Discord Bots API endpoint --- client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.py b/client.py index 6e60908..dc10a40 100644 --- a/client.py +++ b/client.py @@ -57,8 +57,8 @@ class WorldTime(discord.Client): logPrint("Report", "Currently in {0} guild(s).".format(guildcount)) async with aiohttp.ClientSession() as session: if authtoken != '': - rurl = "https://bots.discord.pw/api/bots/{}/stats".format(self.user.id) - rdata = { "server_count": guildcount } + rurl = "https://discord.bots.gg/api/v1/bots/{}/stats".format(self.user.id) + rdata = { "guildCount": guildcount } rhead = { "Content-Type": "application/json", "Authorization": authtoken } try: await session.post(rurl, json=rdata, headers=rhead) @@ -67,4 +67,4 @@ class WorldTime(discord.Client): logPrint("Report", "Discord Bots API report failed: {}".format(e)) except Exception as e: logPrint("Report", "Unknown error on Discord Bots API report.") - await asyncio.sleep(21600) # Repeat once every six hours \ No newline at end of file + await asyncio.sleep(21600) # Repeat once every six hours