update examples

This commit is contained in:
Victor Kotlin 2021-09-24 19:12:10 +03:00
parent 1edeac3c2b
commit f0dcd930dd
4 changed files with 6 additions and 6 deletions

View file

@ -29,7 +29,7 @@ boticord = BoticordClient(bot, "your-boticord-token")
@bot.event
async def on_ready():
stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
await boticord.Bots.postStats(stats)
await boticord.Bots.post_stats(stats)
bot.run("your-bot-token")
@ -58,7 +58,7 @@ class BoticordCog(commands.Cog):
This commands can be used by owner to post stats to boticord
"""
stats = {"servers": len(self.bot.guilds), "shards": 0, "users": len(self.bot.users)}
await self.boticord.Bots.postStats(stats)
await self.boticord.Bots.post_stats(stats)
def setup(bot):

View file

@ -44,7 +44,7 @@ Post bot stats when bot is ready.
@bot.event
async def on_ready():
stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
await boticord.Bots.postStats(stats)
await boticord.Bots.post_stats(stats)
bot.run("your-bot-token")
@ -75,7 +75,7 @@ Cog with automatically stats post (every 15 minutes) + bot's owner command that
This commands can be used by owner to post stats to boticord
"""
stats = {"servers": len(self.bot.guilds), "shards": 0, "users": len(self.bot.users)}
await self.boticord.Bots.postStats(stats)
await self.boticord.Bots.post_stats(stats)
def setup(bot):

View file

@ -16,7 +16,7 @@ class BoticordCog(commands.Cog):
This commands can be used by owner to post stats to boticord
"""
stats = {"servers": len(self.bot.guilds), "shards": 0, "users": len(self.bot.users)}
await self.boticord.Bots.postStats(stats)
await self.boticord.Bots.post_stats(stats)
def setup(bot):

View file

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