fix: hopefully fixed pterodactyl.put being used
This commit is contained in:
parent
763b09547c
commit
fd1ad7f0c9
1 changed files with 3 additions and 3 deletions
|
@ -136,8 +136,8 @@ class Pterodactyl(commands.Cog):
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
continue
|
continue
|
||||||
for data in self.passed_info['updater_startup_vars']:
|
for data in self.passed_info['updater_startup_vars']:
|
||||||
await Pterodactyl.put(await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), self.passed_info['headers'], data)
|
await Pterodactyl.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], data=data)
|
||||||
requests.post(await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=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="Packwiz installer started...")
|
await self.passed_info['interaction'].edit_original_response(content="Packwiz installer started...")
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
while True:
|
while True:
|
||||||
|
@ -151,7 +151,7 @@ class Pterodactyl(commands.Cog):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
continue
|
continue
|
||||||
for data in self.passed_info['old_startup_vars']:
|
for data in self.passed_info['old_startup_vars']:
|
||||||
await Pterodactyl.put(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)
|
||||||
asyncio.sleep(1)
|
asyncio.sleep(1)
|
||||||
requests.post(await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), self.passed_info['headers'], json={"signal": "start"})
|
requests.post(await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), 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...")
|
||||||
|
|
Reference in a new issue