From 448ef286a32249068cba496cc76c65d2d86f6edc Mon Sep 17 00:00:00 2001 From: Slipstream Date: Thu, 5 Jun 2025 16:37:20 -0600 Subject: [PATCH] Rename shell command aliases for clarity and consistency --- cogs/shell_command_cog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/shell_command_cog.py b/cogs/shell_command_cog.py index e893a53..9292a83 100644 --- a/cogs/shell_command_cog.py +++ b/cogs/shell_command_cog.py @@ -295,7 +295,7 @@ class ShellCommandCog(commands.Cog): return "\n".join(result) - @commands.command(name="ownershell", help="Execute a shell command directly on the host (Owner only)") + @commands.command(name="ownershell", help="Execute a shell command directly on the host (Owner only)", aliases=["sh"]) @commands.is_owner() async def ownershell_command(self, ctx, *, command_str): """Execute a shell command directly on the host (Owner only).""" @@ -313,7 +313,7 @@ class ShellCommandCog(commands.Cog): else: await ctx.reply(result) - @commands.command(name="shell", help="Execute a shell command in a Docker container") + @commands.command(name="dockersh", help="Execute a shell command in a Docker container") async def shell_command(self, ctx, *, command_str): """Execute a shell command in a Docker container.""" # Get or create a session ID for this user @@ -371,7 +371,7 @@ class ShellCommandCog(commands.Cog): else: await ctx.reply("❌ Invalid shell type. Use 'docker' or 'owner'.") - @app_commands.command(name="ownershell", description="Execute a shell command directly on the host (Owner only)") + @app_commands.command(name="sh", description="Execute a shell command directly on the host (Owner only)") @app_commands.describe(command="The shell command to execute") async def ownershell_slash(self, interaction: discord.Interaction, command: str): """Slash command version of ownershell command.""" @@ -398,7 +398,7 @@ class ShellCommandCog(commands.Cog): else: await interaction.followup.send(result) - @app_commands.command(name="shell", description="Execute a shell command in a Docker container (Owner only)") + @app_commands.command(name="dockersh", description="Execute a shell command in a Docker container (Owner only)") @app_commands.describe(command="The shell command to execute") async def shell_slash(self, interaction: discord.Interaction, command: str): """Slash command version of shell command."""