mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
16 lines
No EOL
411 B
Python
16 lines
No EOL
411 B
Python
from discord.ext import commands
|
|
|
|
from boticordpy import BoticordWebhook, BoticordClient
|
|
|
|
bot = commands.Bot(command_prefix="!")
|
|
boticord = BoticordClient(bot, "boticord-api-token")
|
|
|
|
boticord_webhook = BoticordWebhook(bot, boticord).bot_webhook("/bot", "X-Hook-Key")
|
|
boticord_webhook.run(5000)
|
|
|
|
|
|
@boticord.event("edit_bot_comment")
|
|
async def on_boticord_comment_edit(data):
|
|
print(data)
|
|
|
|
bot.run("bot-token") |