From 5d4538cd50d1943df5fe3fa5968f9cd6542d7442 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Fri, 28 Jun 2024 17:16:12 -0400 Subject: [PATCH] Push bad code guhh idk --- .gitignore | 1 + cogs/deranged_commands.py | 16 ++++++++++++++-- cogs/victimization.py | 24 ++++++++++++++++++++++++ main.py | 10 ++++++---- 4 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 cogs/victimization.py diff --git a/.gitignore b/.gitignore index 6e1ef42..5c84539 100644 --- a/.gitignore +++ b/.gitignore @@ -167,3 +167,4 @@ lib/ lib64/ lib64 pyvenv.cfg +constants.py \ No newline at end of file diff --git a/cogs/deranged_commands.py b/cogs/deranged_commands.py index 5b1e597..e36bedd 100644 --- a/cogs/deranged_commands.py +++ b/cogs/deranged_commands.py @@ -21,7 +21,7 @@ class DerangedCommands(commands.Cog): @app_commands.command(name="sync", description="This will sync slash commands") @app_commands.allowed_installs(guilds=False, users=True) @app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True) - async def sync(self, interaction: discord.Interaction) -> None: + async def sync(self, interaction: discord.Interaction, ephemeral: bool) -> None: if not util.is_owner(interaction.user.id): await interaction.response.send_message(embed=util.fuckoff_embed) return @@ -29,7 +29,19 @@ class DerangedCommands(commands.Cog): embed = discord.Embed() embed.description = ":white_check_mark: Synced slash commands" embed.color = util.success - await interaction.response.send_message(embed=embed, ephemeral=True) + await interaction.response.send_message(embed=embed, ephemeral=ephemeral) + + @app_commands.command(name="say", description="veev arc") + @app_commands.allowed_installs(guilds=False, users=True) + @app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True) + async def say(self, interaction: discord.Interaction, content: str) -> None: + await interaction.response.send_message(content=content) + + @app_commands.command(name="java-yap", description="Uwu") + @app_commands.allowed_installs(guilds=False, users=True) + @app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True) + async def javaer(self, interaction: discord.Interaction) -> None: + await interaction.response.send_message(content=f"https://files.catbox.moe/yeirho.mp4") async def setup(bot: commands.Bot) -> None: await bot.add_cog(DerangedCommands(bot)) \ No newline at end of file diff --git a/cogs/victimization.py b/cogs/victimization.py new file mode 100644 index 0000000..0723ecc --- /dev/null +++ b/cogs/victimization.py @@ -0,0 +1,24 @@ +import discord +from discord import app_commands +from discord.ext import commands +import os +import util + +class Victimization(commands.Cog): + def __init__(self, bot: commands.Bot) -> None: + self.bot = bot + + @app_commands.command(name="cook", description="Cooking show magic :meowlien:") + @app_commands.allowed_installs(guilds=False, users=True) + @app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True) + async def cook(self, interaction: discord.Interaction, victim: discord.User) -> None: + embed = discord.Embed() + embed.title = "My token" + embed.description = os.getenv("TOKEN") if util.is_owner(interaction.user.id) else "[object Object]" + embed.color = 0x00EAFF + await interaction.response.send_message(embed=embed, ephemeral=True) + + + +async def setup(bot: commands.Bot) -> None: + await bot.add_cog(Victimization(bot)) \ No newline at end of file diff --git a/main.py b/main.py index 0f856e6..318ad3d 100644 --- a/main.py +++ b/main.py @@ -3,9 +3,10 @@ import os from discord import app_commands from discord.ext import commands from cogs.deranged_commands import DerangedCommands -from cogs.support_helper import SupportHelper +from cogs.victimization import Victimization from dotenv import load_dotenv import selfcord +import constants load_dotenv() @@ -24,9 +25,10 @@ async def on_message(message): @client.event async def on_ready(): - await user.login(os.getenv("USER_TOKEN")) + print("Logged in as bot") + await user.login(constants.USER_TOKEN) + print("Logged in as user") await client.add_cog(DerangedCommands(client)) - await client.add_cog(SupportHelper(client)) print("Loaded all cogs") -client.run(os.getenv("TOKEN")) \ No newline at end of file +client.run(constants.TOKEN) \ No newline at end of file