We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a8ec21 commit 38db754Copy full SHA for 38db754
delete_webhook.py
@@ -7,13 +7,13 @@
7
8
while True:
9
url = input("Enter the URL of the webhook to delete: ")
10
- print('Deleting Webhook')
11
if not re.match(url_pattern, url):
12
os.system('cls' if os.name == 'nt' else 'clear')
13
print("Not a valid URL. Please enter a valid URL.")
14
url = None
15
continue
16
+ print('Deleting Webhook')
17
response = requests.get(url)
18
if response.status_code == requests.codes.ok:
19
webhook_info = response.json()
0 commit comments