fix: added a 10s delay to the power commands
This commit is contained in:
parent
db764b54e2
commit
6ec35134fd
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue