hopefully fixed the post request that starts the server
This commit is contained in:
parent
7234c4095e
commit
508551c579
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class Pterodactyl(commands.Cog):
|
||||||
for data in self.passed_info['old_startup_vars']:
|
for data in self.passed_info['old_startup_vars']:
|
||||||
await Pterodactyl.put(self, await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), self.passed_info['headers'], data)
|
await Pterodactyl.put(self, await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), self.passed_info['headers'], data)
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
requests.post(await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), self.passed_info['headers'], json={"signal": "start"})
|
requests.post(url=await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "start"})
|
||||||
await self.passed_info['interaction'].edit_original_response(content="Server starting...")
|
await self.passed_info['interaction'].edit_original_response(content="Server starting...")
|
||||||
while True:
|
while True:
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
|
|
Reference in a new issue