Message
Message
bot_tokens = [
""
]
def load_allowed_users():
try:
with open("allowedusersaxtern.txt", "r") as file:
return [int(line.strip()) for line in file if line.strip().isdigit()]
except FileNotFoundError:
print("Error: allowedusersaxtern.txt not found.")
return []
allowed_users = load_allowed_users()
def load_flame_messages():
try:
with open("flame.txt", "r", encoding="utf-8") as file:
return [line.strip().replace("\\n", "\n") for line in file if
line.strip()]
except FileNotFoundError:
print("Error: flame.txt not found.")
return ["🔥 Default flame message 🔥"]
flame_messages = load_flame_messages()
def load_help_panel():
try:
with open("helppanel.txt", "r", encoding="utf-8") as file:
return file.read()
except FileNotFoundError:
return "❌ Error: `helppanel.txt` not found."
global_bots = []
active_flame_tasks = {}
reaction_data = {}
def create_bot():
intents = discord.Intents.default()
intents.message_content = True
intents.voice_states = True
@bot.event
async def on_ready():
print(f'✅ {bot.user} Is Ready To Rule On Cord')
@bot.command()
async def join(ctx, vc_id: int):
if ctx.author.id not in allowed_users:
return
if ctx.voice_client:
await ctx.voice_client.disconnect()
try:
await voice_channel.connect()
await ctx.send(f"✅ Joined VC: {voice_channel.name}")
except Exception as e:
await ctx.send(f"❌ Failed to join VC: {e}")
print(f"❌ Error joining VC: {e}")
@bot.command()
async def spam(ctx, message: str, count: int):
if ctx.author.id not in allowed_users:
return
for _ in range(count):
await ctx.send(message)
await asyncio.sleep(0.1)
@bot.command()
async def ap(ctx, target_id: int):
if ctx.author.id not in allowed_users:
return
if ctx.channel.id in active_flame_tasks:
await ctx.send("AutoPreasure Enabled")
return
@bot.command()
async def endap(ctx):
if ctx.author.id not in allowed_users:
return
if ctx.channel.id in active_flame_tasks:
active_flame_tasks[ctx.channel.id].cancel()
del active_flame_tasks[ctx.channel.id]
await ctx.send("Stopped The AutoPreasure")
else:
await ctx.send("AutoPreassure Was Not Active In This Channel")
@bot.command()
async def r(ctx, user_id: int, *emojis):
if ctx.author.id not in allowed_users:
return
if not emojis:
await ctx.send("Please provide at least one emoji.")
return
reaction_data[user_id] = emojis
await ctx.send(f"Started Reacting To <@{user_id}>'s messages with {',
'.join(emojis)}")
@bot.command()
async def sr(ctx, user_id: int):
if ctx.author.id not in allowed_users:
return
del reaction_data[user_id]
await ctx.send(f"Stopped reacting to <@{user_id}>'s messages.")
#Statusing
@bot.command()
async def stream(ctx, url: str, *, status_message: str):
if ctx.author.id not in allowed_users:
return
await
bot.change_presence(activity=discord.Activity(type=discord.ActivityType.streaming,
name=status_message, url=url))
await ctx.send(f"Bot is now streaming: {status_message} - {url}")
@bot.command()
async def autoreply(ctx, user: discord.User):
"""Enable autoreply to a user"""
global auto_reply, opponent
await ctx.message.delete()
auto_reply = True
opponent = user
await ctx.send(f"✅ Auto-reply enabled for {user.mention}", delete_after=5)
@bot.command()
async def stopreply(ctx):
"""Disable autoreply"""
global auto_reply, opponent
await ctx.message.delete()
auto_reply = False
opponent = None
await ctx.send("❌ Auto-reply disabled.", delete_after=5)
@bot.event
async def on_message(message):
global auto_reply, opponent
if message.author.id in reaction_data and not message.author.bot:
for emoji in reaction_data[message.author.id]:
try:
await message.add_reaction(emoji)
except Exception as e:
print(f"Error adding reaction: {e}")
# 💬 Auto Reply
if auto_reply and opponent and message.author.id == opponent.id:
replies = load_replies()
if replies:
reply = random.choice(replies)
await message.channel.send(reply)
await bot.process_commands(message)
@bot.command()
async def help(ctx):
help_panel = load_help_panel()
await ctx.send(help_panel)
return bot
if __name__ == "__main__":
asyncio.run(main())