From 6ec35134fd25018a1f7242dc2b6a1131d3860275 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 24 Jul 2023 09:17:25 -0400 Subject: [PATCH] fix: added a 10s delay to the power commands --- pterodactyl/ptero.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 237a635..7910537 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -290,6 +290,7 @@ class Pterodactyl(commands.Cog): headers = self.passed_info['headers'] await self.session.post(await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=headers, json={"signal": self.passed_info['signal']}) message = await self.passed_info['interaction'].edit_original_response(content=self.passed_info['message'], view=None) + await asyncio.sleep(10) while True: async with self.session.get(await Pterodactyl.get_url(self, self.passed_info['guild'], "resources"), headers=headers) as response: response_dict = await response.json()