DBL shard_id fix

This commit is contained in:
Jeremy "EndenDragon" Zhang
2020-03-22 19:20:45 -07:00
committed by GitHub
parent f820033a8f
commit 7ac24a8981

View File

@ -7,7 +7,7 @@ class DiscordBotsOrg(): # https://discordbots.org
async def post(self, count, shard_count, shard_id):
headers = {"Authorization": self.token}
payload = {"server_count": count, "shard_count": shard_count, "shard_no": shard_id}
payload = {"server_count": count, "shard_count": shard_count, "shard_id": shard_id}
async with aiohttp.ClientSession() as aioclient:
await aioclient.post(self.url, json=payload, headers=headers)
@ -20,4 +20,4 @@ class BotsDiscordPw(): # https://bots.discord.pw/
headers = {"Authorization": self.token}
payload = {"server_count": count, "shard_count": shard_count, "shard_id": shard_id}
async with aiohttp.ClientSession() as aioclient:
await aioclient.post(self.url, json=payload, headers=headers)
await aioclient.post(self.url, json=payload, headers=headers)