mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-24 09:24:13 +00:00
Update Discord Bots API endpoint
This commit is contained in:
parent
d658672006
commit
32ace2f19e
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue