2022-09-10 15:00:26 +03:00
|
|
|
# You can use any library to interact with the Discord API.
|
|
|
|
# This example uses discord.py.
|
|
|
|
# You can install it with `pip install discord.py`.
|
2022-02-13 17:53:56 +03:00
|
|
|
|
|
|
|
from discord.ext import commands
|
|
|
|
from boticordpy import webhook
|
|
|
|
|
|
|
|
bot = commands.Bot(command_prefix="!")
|
|
|
|
|
|
|
|
|
|
|
|
async def edit_bot_comment(data):
|
|
|
|
print(data.comment.new)
|
|
|
|
|
2022-09-10 15:00:26 +03:00
|
|
|
|
|
|
|
boticord_webhook = webhook.Webhook("x-hook-key", "bot").register_listener(
|
|
|
|
"edit_bot_comment", edit_bot_comment
|
|
|
|
)
|
2022-02-13 17:53:56 +03:00
|
|
|
boticord_webhook.start(5000)
|
|
|
|
|
2022-09-10 15:00:26 +03:00
|
|
|
bot.run("bot_token")
|