import asyncio
import io
import json
import random
import string
import nextcord
from nextcord import SlashOption, Interaction
from [Link] import commands
intents = [Link]()
bot = [Link](command_prefix="/", intents=intents)
STARBOARD_CHANNEL_ID = 1280296978655215616
STAR_EMOJI = "⭐"
STAR_THRESHOLD = 3
SERVER_ID = 1271929049761185832
ALLOWED_IDS =
[1271345768665710667,763268543491866644,708605521065934900,1226633929289760871,9803
94077591830538,1272007178441588779]
ALLOWED_ROLES =
[1271977409704366183,1276149600230838357,1278065754473762878,1274991622572081173,12
72259101363015701]
BOT_TOKEN =
"[Link].9IQLsckRNYaJ_OPV7vsthFDKh62CxjYCuNaN1M"
MEME_CHANNEL_ID = 1280830092398039050
starred_messages = {}
@[Link]
async def on_ready():
print(f'Logged in as {[Link]}')
await
bot.change_presence(activity=[Link](type=[Link],
name="Humans"))
def create_embed(message, star_count):
embed = [Link](description=[Link], color=0x773303)
embed.set_author(name=[Link].display_name,
icon_url=[Link])
embed.add_field(name="",
value=f"[Jump to
message]([Link]
{[Link]})")
embed.set_footer(text=f"⭐ {star_count}")
return embed
@[Link]
async def on_raw_reaction_add(payload):
if payload.guild_id != SERVER_ID:
return
if [Link] == STAR_EMOJI:
channel = bot.get_channel(payload.channel_id)
message = await channel.fetch_message(payload.message_id)
starboard_channel = bot.get_channel(STARBOARD_CHANNEL_ID)
if [Link] in starred_messages:
embed_message = await
starboard_channel.fetch_message(starred_messages[[Link]])
star_count = next(([Link] for r in [Link] if [Link] ==
STAR_EMOJI), 0)
if star_count >= STAR_THRESHOLD:
embed = embed_message.embeds[0]
embed.set_footer(text=f"⭐ {star_count}")
await embed_message.edit(embed=embed)
else:
await embed_message.delete()
del starred_messages[[Link]]
else:
star_count = next(([Link] for r in [Link] if [Link] ==
STAR_EMOJI), 0)
if star_count >= STAR_THRESHOLD:
embed = create_embed(message, star_count)
embed_message = await starboard_channel.send(embed=embed)
starred_messages[[Link]] = embed_message.id
@[Link]
async def on_raw_reaction_remove(payload):
if payload.guild_id != SERVER_ID:
return
if [Link] == STAR_EMOJI:
channel = bot.get_channel(payload.channel_id)
message = await channel.fetch_message(payload.message_id)
starboard_channel = bot.get_channel(STARBOARD_CHANNEL_ID)
if [Link] in starred_messages:
embed_message = await
starboard_channel.fetch_message(starred_messages[[Link]])
star_count = next(([Link] for r in [Link] if [Link] ==
STAR_EMOJI), 0)
if star_count >= STAR_THRESHOLD:
embed = embed_message.embeds[0]
embed.set_footer(text=f"⭐ {star_count}")
await embed_message.edit(embed=embed)
else:
await embed_message.delete()
del starred_messages[[Link]]
@bot.slash_command(name="send_embed", description="Send a customizable embed
message as the bot.")
async def send_embed(
interaction: Interaction,
title: str,
description: str,
colour: str = "#773303",
footer: str = ""
):
if [Link] not in ALLOWED_IDS and not any([Link] in ALLOWED_ROLES
for role in [Link]):
await [Link].send_message("You are not allowed to use this
command.", ephemeral=True)
return
if not ([Link]("#") and len(colour) == 7 and all(c in
"0123456789abcdefABCDEF" for c in colour[1:])):
colour = "#dfeef5"
try:
embed_color = [Link](int([Link]("#"), 16))
except ValueError:
embed_color = [Link].from_rgb(223, 238, 245)
formatted_description = [Link]("\\n", "\n")
embed = [Link](
title=title,
description=formatted_description,
color=embed_color
)
if footer:
embed.set_footer(text=footer)
await [Link].send_message("Embed sent!", ephemeral=True)
await [Link](embed=embed)
@bot.slash_command(description="Impersonate a member")
async def impersonate(
interaction: Interaction,
person: [Link] = SlashOption(description="Select a member to
impersonate", required=True),
message: str = SlashOption(description="Message to send as the member",
required=True)
):
if [Link] not in ALLOWED_IDS and not any([Link] in ALLOWED_ROLES
for role in [Link]):
await [Link].send_message("You are not allowed to use this
command.", ephemeral=True)
return
display_name = person.global_name if isinstance(person, [Link]) and
person.global_name else [Link]
display_name = display_name.split('#')[0]
channel = [Link]
await [Link].send_message(f"Sending message as
{display_name}...", ephemeral=True)
avatar = await [Link]() if [Link] else None
webhook = await channel.create_webhook(name=display_name, avatar=avatar)
await [Link](content=message)
await [Link]()
def load_fake_info():
with open('fake_info.json', 'r') as file:
return [Link](file)
def get_random_fake_info(fake_info):
selected_info = {}
for key, value in fake_info.items():
if isinstance(value, list):
selected_info[key] = [Link](value)
else:
selected_info[key] = value
return selected_info
async def countdown_message(message, new_content):
await [Link](content=new_content)
await [Link](0.5)
def generate_random_password():
return ''.join([Link](string.ascii_letters + [Link]) for _ in
range(6))
@bot.slash_command(name="dox", description="Initiate a fake dox protocol.")
async def dox(interaction: [Link], user: [Link]):
await [Link]()
fake_info = load_fake_info()
dox_message = await [Link](f"Initiating dox protocol on
{[Link]}...")
await countdown_message(dox_message, f"Hacking into {[Link]}'s discord
account...")
await [Link](0.5)
await countdown_message(dox_message, "Brute forcing the way in")
await [Link](0.5)
num_loops = 7
for _ in range(num_loops):
passwords = [generate_random_password() for _ in range(4)]
await dox_message.edit(content=f"passwords failed: {', '.join(passwords)}")
decoded_password = generate_random_password()
await dox_message.edit(content=f"password decoded successfully:
{decoded_password}")
await [Link](0.5)
await countdown_message(dox_message, "Commencing data reconnaissance...")
await [Link](0.5)
await countdown_message(dox_message, "searching for connections...")
await [Link](0.5)
await countdown_message(dox_message, "hacking into connected accounts...")
await [Link](0.5)
await countdown_message(dox_message, "Enabling dark web surveillance for
further data...")
await [Link](0.5)
await countdown_message(dox_message, "Formulating the definitive data
dossier...")
await [Link](0.5)
await countdown_message(dox_message, "All tasks executed flawlessly!")
await [Link](0.5)
selected_fake_info = get_random_fake_info(fake_info)
embed = [Link](
title=f"Data report on {user.display_name}",
color=[Link]()
)
for key, value in selected_fake_info.items():
embed.add_field(name=key, value=value, inline=False)
await [Link](embed=embed)
@bot.slash_command(name="send", description="Send a message with up to two files.")
async def send_message(
interaction: Interaction,
message: str,
file1: [Link] = SlashOption(description="Attach a file",
required=False),
file2: [Link] = SlashOption(description="Attach a file",
required=False),
file3: [Link] = SlashOption(description="Attach a file",
required=False),
file4: [Link] = SlashOption(description="Attach a file",
required=False),
file5: [Link] = SlashOption(description="Attach a file",
required=False),
file6: [Link] = SlashOption(description="Attach a file",
required=False),
file7: [Link] = SlashOption(description="Attach a file",
required=False),
file8: [Link] = SlashOption(description="Attach a file",
required=False),
file9: [Link] = SlashOption(description="Attach a file",
required=False),
file10: [Link] = SlashOption(description="Attach a file",
required=False),
file11: [Link] = SlashOption(description="Attach a file",
required=False),
file12: [Link] = SlashOption(description="Attach a file",
required=False),
file13: [Link] = SlashOption(description="Attach a file",
required=False),
file14: [Link] = SlashOption(description="Attach a file",
required=False),
file15: [Link] = SlashOption(description="Attach a file",
required=False),
file16: [Link] = SlashOption(description="Attach a file",
required=False),
file17: [Link] = SlashOption(description="Attach a file",
required=False),
file18: [Link] = SlashOption(description="Attach a file",
required=False),
file19: [Link] = SlashOption(description="Attach a file",
required=False),
file20: [Link] = SlashOption(description="Attach a file",
required=False),
):
if [Link] not in ALLOWED_IDS and not any([Link] in ALLOWED_ROLES
for role in [Link]):
await [Link].send_message("You are not allowed to use this
command.", ephemeral=True)
return
formatted_message = [Link]("\\n", "\n")
await [Link].send_message("Sending...", ephemeral=True)
discord_files = []
if file1:
file_bytes1 = await [Link]()
discord_files.append([Link]([Link](file_bytes1),
filename=[Link]))
if file2:
file_bytes2 = await [Link]()
discord_files.append([Link]([Link](file_bytes2),
filename=[Link]))
if file3:
file_bytes3 = await [Link]()
discord_files.append([Link]([Link](file_bytes3),
filename=[Link]))
if file4:
file_bytes4 = await [Link]()
discord_files.append([Link]([Link](file_bytes4),
filename=[Link]))
if file5:
file_bytes5 = await [Link]()
discord_files.append([Link]([Link](file_bytes5),
filename=[Link]))
if file6:
file_bytes6 = await [Link]()
discord_files.append([Link]([Link](file_bytes6),
filename=[Link]))
if file7:
file_bytes7 = await [Link]()
discord_files.append([Link]([Link](file_bytes7),
filename=[Link]))
if file8:
file_bytes8 = await [Link]()
discord_files.append([Link]([Link](file_bytes8),
filename=[Link]))
if file9:
file_bytes9 = await [Link]()
discord_files.append([Link]([Link](file_bytes9),
filename=[Link]))
if file10:
file_bytes10 = await [Link]()
discord_files.append([Link]([Link](file_bytes10),
filename=[Link]))
if file11:
file_bytes11 = await [Link]()
discord_files.append([Link]([Link](file_bytes11),
filename=[Link]))
if file12:
file_bytes12 = await [Link]()
discord_files.append([Link]([Link](file_bytes12),
filename=[Link]))
if file13:
file_bytes13 = await [Link]()
discord_files.append([Link]([Link](file_bytes13),
filename=[Link]))
if file14:
file_bytes14 = await [Link]()
discord_files.append([Link]([Link](file_bytes14),
filename=[Link]))
if file15:
file_bytes15 = await [Link]()
discord_files.append([Link]([Link](file_bytes15),
filename=[Link]))
if file16:
file_bytes16 = await [Link]()
discord_files.append([Link]([Link](file_bytes16),
filename=[Link]))
if file17:
file_bytes17 = await [Link]()
discord_files.append([Link]([Link](file_bytes17),
filename=[Link]))
if file18:
file_bytes18 = await [Link]()
discord_files.append([Link]([Link](file_bytes18),
filename=[Link]))
if file19:
file_bytes19 = await [Link]()
discord_files.append([Link]([Link](file_bytes19),
filename=[Link]))
if file20:
file_bytes20 = await [Link]()
discord_files.append([Link]([Link](file_bytes20),
filename=[Link]))
if discord_files:
await [Link](formatted_message, files=discord_files)
else:
await [Link](formatted_message)
def get_random_insult():
with open('[Link]', 'r') as file:
insults = [Link](file)
return [Link](insults)
# Get a random compliment from the JSON file
def get_random_compliment():
with open('[Link]', 'r') as file:
compliments = [Link](file)
return [Link](compliments)
# Command to get a random insult
@[Link](name='insult')
async def insult(ctx):
insult = get_random_insult()
await [Link](insult)
# Command to get a random compliment
@[Link](name='compliment')
async def compliment(ctx):
compliment = get_random_compliment()
await [Link](compliment)
[Link](BOT_TOKEN)