change on_connect to on_ready

This commit is contained in:
Victor Kotlin 2021-09-09 17:24:41 +03:00
parent a148e3274e
commit 458183481d
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ boticord = BoticordClient(bot, "your-boticord-token")
@bot.event
async def on_connect():
async def on_ready():
stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
await boticord.Bots.postStats(stats)

View file

@ -7,7 +7,7 @@ boticord = BoticordClient(bot, "your-boticord-token")
@bot.event
async def on_connect():
async def on_ready():
stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
await boticord.Bots.postStats(stats)