boticordpy/examples/stats_melisa.py
2023-06-27 18:26:42 +03:00

16 lines
399 B
Python

import melisa
from boticordpy import BoticordClient
bot = melisa.Bot("your_discord_bot_token")
boticord = BoticordClient("your_boticord_api_token")
@bot.listen
async def on_message_create(message):
if message.content.startswith("!guilds"):
data = await boticord.get_bot_info(bot.user.id)
await bot.rest.create_message(message.channel.id, data.guilds)
bot.run_autosharded()