moved new_put_data

This commit is contained in:
Seaswimmer 2023-07-15 18:32:55 -04:00
parent 5b82db41b6
commit a7c7a8e17c
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -75,19 +75,19 @@ class Pterodactyl(commands.Cog):
"value": startup_jar
}
]
new_put_data = [
{
"key": "FLAGS",
"value": old_startup_args[1]
},
{
"key": "SERVER_JARFILE",
"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)
new_put_data = [
{
"key": "FLAGS",
"value": old_startup_args[1]
},
{
"key": "SERVER_JARFILE",
"value": old_startup_args[0]
}
]
requests.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"})
await interaction_message.edit(content="Packwiz installer started...")
await asyncio.sleep(1)