try fix discord bots gg's changes
This commit is contained in:
parent
16f2917489
commit
0e6be10d7b
4
bot.py
4
bot.py
|
@ -123,9 +123,9 @@ async def on_ready():
|
||||||
await bot.change_presence(game=discord.Game(name='#!adv', type=2))
|
await bot.change_presence(game=discord.Game(name='#!adv', type=2))
|
||||||
await bot.send_message(discord.Object(id="408902143119196161"),
|
await bot.send_message(discord.Object(id="408902143119196161"),
|
||||||
"**Im ready!** " + str(datetime.datetime.now()))
|
"**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')},
|
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"),
|
await bot.send_message(discord.Object(id="408902143119196161"),
|
||||||
f'**Connected to {len(bot.servers)} servers**')
|
f'**Connected to {len(bot.servers)} servers**')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue