mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
no more webhooks
This commit is contained in:
parent
388e893440
commit
08fb473865
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
# 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`.
|
||||
|
||||
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")
|
Loading…
Reference in a new issue