mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-14 12:27:28 +03:00
17 lines
399 B
Python
17 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()
|