-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwbtroll.py
More file actions
78 lines (62 loc) · 3.23 KB
/
wbtroll.py
File metadata and controls
78 lines (62 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import asyncio
import aiohttp
async def snap_discord_webhook(webhooker_url):
async with aiohttp.ClientSession() as session:
async with session.delete(url=webhooker_url) as response:
if response.status == 204:
print("Webhook successfully deleted!")
elif response.status == 404:
print("Webhook not found!")
elif response.status == 429:
print("You are currently being ratelimited! Try again later")
else:
print(f"Failed to send message. Status code: {response.status}")
async def send_discord_webhook(webhook_url, message):
data = {"content": message}
async with aiohttp.ClientSession() as session:
while True:
async with session.post(url=webhook_url, data=data) as response:
if response.status == 204:
print("Message sent!")
elif response.status == 404:
print("Webhook not found!")
elif response.status == 429:
print("You are currently being ratelimited! Try again later")
else:
print(f"Failed to send message. Status code: {response.status}")
async def main():
while True:
print('''
▗▖ ▗▖ ▗▄▖ ▗▄▄▄ ▗▄▄▄▖ ▗▄▄▖▗▖ ▗▖ ▗▄▄▖ ▗▄▄▄▖▗▄▄▄ ▗▄▄▖▗▖ ▗▄▄▄▖▗▖ ▗▖▗▄▄▄▖
▐▛▚▞▜▌▐▌ ▐▌▐▌ █ ▐▌ ▐▌ ▐▌▝▚▞▘ ▐▌ ▐▌▐▌ ▐▌ █ ▐▌ ▐▌ █ ▐▛▚▞▜▌▐▌
▐▌ ▐▌▐▛▀▜▌▐▌ █ ▐▛▀▀▘ ▐▛▀▚▖ ▐▌ ▐▛▀▚▖▐▛▀▀▘▐▌ █ ▝▀▚▖▐▌ █ ▐▌ ▐▌▐▛▀▀▘
▐▌ ▐▌▐▌ ▐▌▐▙▄▄▀ ▐▙▄▄▖ ▐▙▄▞▘ ▐▌ ▐▌ ▐▌▐▙▄▄▖▐▙▄▄▀ ▗▄▄▞▘▐▙▄▄▖▗▄█▄▖▐▌ ▐▌▐▙▄▄▖
''')
print("\nDiscord Webhook Trollinator v0.1")
print("\nMade By TheMrRedSlime!")
print("\nMenu:")
print("1. Delete Webhook")
print("2. Spam Webhook")
print("0. Exit")
choice = input("Enter your choice: ")
if choice == "1":
print("Webhook Deleter!")
webhooker_url = input("Enter the Discord webhook URL: ")
await snap_discord_webhook(webhooker_url)
elif choice == "2":
print("Webhook Spammer!!!")
webhook_url = input("Enter the Discord webhook URL: ")
message = input("Enter the message you want to send: ")
await send_discord_webhook(webhook_url, message)
elif choice == "0":
print("Webhook Troller Exiting")
print("Thank you for using Webhook Troller v0.1")
break
else:
print("Invalid choice. Please select a valid option.")
if __name__ == "__main__":
try:
asyncio.run(main())
except KeyboardInterrupt:
print("Webhook Troller Exiting")
print("Thank you for using Webhook Troller v0.1")