mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-21 22:34:36 +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))
|
logPrint("Report", "Currently in {0} guild(s).".format(guildcount))
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
if authtoken != '':
|
if authtoken != '':
|
||||||
rurl = "https://bots.discord.pw/api/bots/{}/stats".format(self.user.id)
|
rurl = "https://discord.bots.gg/api/v1/bots/{}/stats".format(self.user.id)
|
||||||
rdata = { "server_count": guildcount }
|
rdata = { "guildCount": guildcount }
|
||||||
rhead = { "Content-Type": "application/json", "Authorization": authtoken }
|
rhead = { "Content-Type": "application/json", "Authorization": authtoken }
|
||||||
try:
|
try:
|
||||||
await session.post(rurl, json=rdata, headers=rhead)
|
await session.post(rurl, json=rdata, headers=rhead)
|
||||||
|
|
Loading…
Reference in a new issue