update examples

This commit is contained in:
MadCat9958 2023-07-01 13:02:10 +03:00
parent 664b12b931
commit b4a7f36126
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ bot = commands.Bot(command_prefix="!")
# Function that will return the current bot's stats. # Function that will return the current bot's stats.
async def get_stats(): async def get_stats():
return {"servers": len(bot.guilds), "shards": 0, "users": len(bot.users)} return {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)}
# Function that will be called if stats are posted successfully. # Function that will be called if stats are posted successfully.

View file

@ -10,7 +10,7 @@ bot = commands.Bot(command_prefix="!")
# Function that will return the current bot's stats. # Function that will return the current bot's stats.
async def get_stats(): async def get_stats():
return {"servers": len(bot.guilds), "shards": 0, "users": len(bot.users)} return {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)}
# Function that will be called if stats are posted successfully. # Function that will be called if stats are posted successfully.