boticordpy/examples/webhook.py

17 lines
412 B
Python
Raw Normal View History

2021-09-12 12:50:38 +03:00
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)
2021-09-18 17:53:48 +03:00
2021-09-12 12:50:38 +03:00
bot.run("bot-token")