fixed old_startup_args
This commit is contained in:
parent
8e3ca6a1f2
commit
40d3bb6115
1 changed files with 12 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Pterodactyl(commands.Cog):
|
|||
response_dict = response.json()
|
||||
list_var = requests.get(await self.get_url(interaction.guild, "startup"), headers=headers)
|
||||
list_var_response_dict = list_var.json()
|
||||
old_startup_args = [list_var_response_dict['data'][0]['attributes']['server_value'], list_var_response_dict['meta']['startup_command']]
|
||||
old_startup_args = [list_var_response_dict['data'][0]['attributes']['server_value'], list_var_response_dict['data'][4]['attributes']['server_value']]
|
||||
put_data = [
|
||||
{
|
||||
"key": "FLAGS",
|
||||
|
@ -251,3 +251,14 @@ class Pterodactyl(commands.Cog):
|
|||
else:
|
||||
send = f"Configuration changed:\n{message}"
|
||||
await interaction.response.send_message(send, ephemeral=True)
|
||||
|
||||
|
||||
import requests
|
||||
headers = {
|
||||
"Authorization": "Bearer ptlc_9BVTvT41F7mNtG7YIqaxhOySf4Z8YDmVYwaITwwIbA7",
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "Application/vnd.pterodactyl.v1+json"
|
||||
}
|
||||
request = requests.get("https://mc.bloom.host/api/client/servers/d6d05b41-4da5-4c5b-9ee6-6e25f61a596b/startup", headers=headers)
|
||||
request_dict = request.json()
|
||||
print(request_dict)
|
||||
|
|
Reference in a new issue