Rename shell command aliases for clarity and consistency

This commit is contained in:
Slipstream 2025-06-05 16:37:20 -06:00
parent 236b64413b
commit 448ef286a3
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -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."""