From fa48b3a924db854d80af91bb431f42028105f4f1 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 14:13:35 -0400 Subject: [PATCH] fix: changed something in the updatebuttons class --- pterodactyl/ptero.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 7fe32cd..f73221a 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -233,8 +233,7 @@ class Pterodactyl(commands.Cog): await asyncio.sleep(2) continue 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: - pass + await session.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], data=data) 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 asyncio.sleep(2)