fix: testing a chatgpt fix

This commit is contained in:
Seaswimmer 2023-07-15 23:46:52 -04:00
parent bc15baa2de
commit 0f8d999154
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -119,10 +119,11 @@ class Pterodactyl(commands.Cog):
def __init__(self, timeout, passed_info):
super().__init__()
self.passed_info = passed_info
self.pterodactyl = Pterodactyl()
@ui.button(label="Yes", style=discord.ButtonStyle.success)
async def yes_button(self, button:ui.Button, interaction:discord.Interaction):
requests.post(await Pterodactyl.get_url(self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "stop"})
requests.post(await self.pterodactyl.get_url(self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "stop"})
await self.passed_info['interaction'].edit_original_response("Server stopping...", view=None)
while True:
async with aiohttp.ClientSession() as session: