try fix discord bots gg's changes

This commit is contained in:
raatty 2018-12-08 18:37:23 +13:00
parent 16f2917489
commit 0e6be10d7b
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -123,9 +123,9 @@ async def on_ready():
await bot.change_presence(game=discord.Game(name='#!adv', type=2))
await bot.send_message(discord.Object(id="408902143119196161"),
"**Im ready!** " + str(datetime.datetime.now()))
requests.post('https://bots.discord.pw/api/bots/410356358836256768/stats',
requests.post('https://discord.bots.gg/api/v1/bots/410356358836256768/stats',
headers={"Authorization": os.getenv('BOTS_PW_AUTH')},
json={"server_count": len(bot.servers)})
json={"guildCount": len(bot.servers)})
await bot.send_message(discord.Object(id="408902143119196161"),
f'**Connected to {len(bot.servers)} servers**')