fix: changed something in the updatebuttons class
This commit is contained in:
parent
6079ccd371
commit
fa48b3a924
1 changed files with 1 additions and 2 deletions
|
@ -233,8 +233,7 @@ class Pterodactyl(commands.Cog):
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
continue
|
continue
|
||||||
for data in self.passed_info['updater_startup_vars']:
|
for data in self.passed_info['updater_startup_vars']:
|
||||||
async with session.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], data=data) as response:
|
await session.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], data=data)
|
||||||
pass
|
|
||||||
await session.post(url=await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "start"})
|
await session.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="Updater started...")
|
await self.passed_info['interaction'].edit_original_response(content="Updater started...")
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
|
|
Reference in a new issue