suka, guilds or servers?

This commit is contained in:
MadCat9958 2023-07-02 22:57:41 +03:00
parent 5511fd7818
commit c3a2692985
3 changed files with 3 additions and 3 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 {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)} return {"servers": 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

@ -77,7 +77,7 @@ class BoticordClient:
_logger.info("Posting bot stats") _logger.info("Posting bot stats")
response = await self.http.post_bot_stats( response = await self.http.post_bot_stats(
bot_id, {"guilds": servers, "shards": shards, "members": users} bot_id, {"servers": servers, "shards": shards, "members": users}
) )
return boticord_types.ResourceBot.from_dict(response) return boticord_types.ResourceBot.from_dict(response)

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 {"guilds": len(bot.guilds), "shards": 0, "members": len(bot.users)} return {"servers": 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.