From 08fb473865337884233ba4e6100d4ecf8ffaf98e Mon Sep 17 00:00:00 2001 From: MadCat9958 Date: Sun, 4 Jun 2023 13:25:22 +0300 Subject: [PATCH] no more webhooks --- examples/webhooks.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 examples/webhooks.py diff --git a/examples/webhooks.py b/examples/webhooks.py deleted file mode 100644 index 5b937a6..0000000 --- a/examples/webhooks.py +++ /dev/null @@ -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")