revert: thanks chatgpt
This commit is contained in:
parent
0f8d999154
commit
b9e97e09c0
1 changed files with 1 additions and 2 deletions
|
@ -119,11 +119,10 @@ class Pterodactyl(commands.Cog):
|
||||||
def __init__(self, timeout, passed_info):
|
def __init__(self, timeout, passed_info):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.passed_info = passed_info
|
self.passed_info = passed_info
|
||||||
self.pterodactyl = Pterodactyl()
|
|
||||||
|
|
||||||
@ui.button(label="Yes", style=discord.ButtonStyle.success)
|
@ui.button(label="Yes", style=discord.ButtonStyle.success)
|
||||||
async def yes_button(self, button:ui.Button, interaction:discord.Interaction):
|
async def yes_button(self, button:ui.Button, interaction:discord.Interaction):
|
||||||
requests.post(await self.pterodactyl.get_url(self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "stop"})
|
requests.post(await 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)
|
await self.passed_info['interaction'].edit_original_response("Server stopping...", view=None)
|
||||||
while True:
|
while True:
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
|
|
Reference in a new issue