boticordpy/examples/postdata.py

16 lines
364 B
Python
Raw Normal View History

2021-08-24 21:20:10 +03:00
from discord.ext import commands
from boticordpy import BoticordClient
bot = commands.Bot(command_prefix="!")
boticord = BoticordClient(bot, "your-boticord-token")
@bot.event
2021-09-09 17:24:41 +03:00
async def on_ready():
2021-08-24 21:20:10 +03:00
stats = {"servers": len(bot.guilds), "shards": bot.shard_count, "users": len(bot.users)}
2021-09-24 19:12:10 +03:00
await boticord.Bots.post_stats(stats)
2021-08-24 21:20:10 +03:00
bot.run("your-bot-token")