mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
update examples
This commit is contained in:
parent
1edeac3c2b
commit
f0dcd930dd
4 changed files with 6 additions and 6 deletions
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue