moved new_put_data
This commit is contained in:
parent
5b82db41b6
commit
a7c7a8e17c
1 changed files with 10 additions and 10 deletions
|
@ -75,9 +75,6 @@ class Pterodactyl(commands.Cog):
|
||||||
"value": startup_jar
|
"value": startup_jar
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if response_dict['attributes']['current_state'] == "offline":
|
|
||||||
for data in put_data:
|
|
||||||
await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data)
|
|
||||||
new_put_data = [
|
new_put_data = [
|
||||||
{
|
{
|
||||||
"key": "FLAGS",
|
"key": "FLAGS",
|
||||||
|
@ -88,6 +85,9 @@ class Pterodactyl(commands.Cog):
|
||||||
"value": old_startup_args[0]
|
"value": old_startup_args[0]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
if response_dict['attributes']['current_state'] == "offline":
|
||||||
|
for data in put_data:
|
||||||
|
await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data)
|
||||||
requests.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"})
|
requests.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"})
|
||||||
await interaction_message.edit(content="Packwiz installer started...")
|
await interaction_message.edit(content="Packwiz installer started...")
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
Reference in a new issue