From fb99f5ea3353b00cc4476cdb2b1f9cd485f0aa2f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 23:09:34 -0400 Subject: [PATCH] misc: reduced sleep timer for server status checking --- pterodactyl/ptero.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 8533033..b0defb2 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -116,7 +116,7 @@ class Pterodactyl(commands.Cog): await interaction_message.edit(content="Updater finished.") break else: - await asyncio.sleep(1) + await asyncio.sleep(0.5) continue for data in old_startup_vars: await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, json=data) @@ -230,7 +230,7 @@ class Pterodactyl(commands.Cog): await self.passed_info['interaction'].edit_original_response(content="\nServer stopped!") break else: - await asyncio.sleep(1) + await asyncio.sleep(0.5) continue for data in self.passed_info['updater_startup_vars']: await session.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], json=data) @@ -258,7 +258,7 @@ class Pterodactyl(commands.Cog): await self.passed_info['interaction'].edit_original_response(content="Server started!\nUpdate process completed!") break else: - await asyncio.sleep(1) + await asyncio.sleep(0.5) continue @ui.button(label="No", style=discord.ButtonStyle.danger)