mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-14 20:37:29 +03:00
17 lines
392 B
Python
17 lines
392 B
Python
|
# You can use disnake or nextcord or something like this.
|
||
|
|
||
|
from discord.ext import commands
|
||
|
|
||
|
from boticordpy import webhook
|
||
|
|
||
|
bot = commands.Bot(command_prefix="!")
|
||
|
|
||
|
|
||
|
async def edit_bot_comment(data):
|
||
|
print(data.comment.new)
|
||
|
|
||
|
boticord_webhook = webhook.Webhook("x-hook-key", "bot").register_listener("edit_bot_comment", edit_bot_comment)
|
||
|
boticord_webhook.start(5000)
|
||
|
|
||
|
bot.run("bot token")
|