fix(pterodactyl): fixed incorrect action_ing string for stopping the server
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 26s
Actions / Build Documentation (MkDocs) (push) Successful in 23s

This commit is contained in:
Seaswimmer 2024-03-11 22:19:31 -04:00
parent 25b26322d2
commit 7a75266b01
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -207,6 +207,8 @@ class Pterodactyl(commands.Cog):
The action to perform on the server.""" The action to perform on the server."""
if action.value == "kill": if action.value == "kill":
return await self.power(interaction, action.value, "stopping... (forcefully killed)", warning="**⚠️ Forcefully killing the server process can corrupt data in some cases. ⚠️**\n") return await self.power(interaction, action.value, "stopping... (forcefully killed)", warning="**⚠️ Forcefully killing the server process can corrupt data in some cases. ⚠️**\n")
if action.value == "stop":
return await self.power(interaction, action.value, "stopping...")
return await self.power(interaction, action.value, f"{action.value}ing...") return await self.power(interaction, action.value, f"{action.value}ing...")
@commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"]) @commands.group(autohelp = True, name = "pterodactyl", aliases = ["ptero"])