fix: added a 10s delay to the power commands

This commit is contained in:
Seaswimmer 2023-07-24 09:17:25 -04:00
parent db764b54e2
commit 6ec35134fd
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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()