From 7234c4095ec043ee5e19c705cd679c30a0284692 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 16 Jul 2023 08:30:03 -0400 Subject: [PATCH] fix: increased sleep timers --- pterodactyl/ptero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index e40b0b9..f1a2d9d 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -139,7 +139,7 @@ class Pterodactyl(commands.Cog): 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(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 asyncio.sleep(1) + await asyncio.sleep(2) while True: async with aiohttp.ClientSession() as session: async with session.get(await Pterodactyl.get_url(self, self.passed_info['guild'], "resources"), headers=self.passed_info['headers']) as response: @@ -152,7 +152,7 @@ class Pterodactyl(commands.Cog): continue 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 asyncio.sleep(1) + await asyncio.sleep(2) 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...") while True: