mirror of
https://github.com/boticord/boticordpy.git
synced 2024-09-22 19:32:01 +03:00
change on_connect to on_ready
This commit is contained in:
parent
a148e3274e
commit
458183481d
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue