Compare commits
2 commits
6ec35134fd
...
ec5daee2de
Author | SHA1 | Date | |
---|---|---|---|
ec5daee2de | |||
610e9902a9 |
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
import asyncio
|
||||
import aiohttp
|
||||
import discord
|
||||
import requests
|
||||
from discord import ui
|
||||
from discord.ext import commands
|
||||
from redbot.core import Config, app_commands, commands
|
||||
|
@ -202,7 +201,7 @@ class Pterodactyl(commands.Cog):
|
|||
await interaction.response.defer(ephemeral=True, thinking=True)
|
||||
interaction_message = await interaction.original_response()
|
||||
headers = await self.get_headers(interaction.guild)
|
||||
async with requests.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response:
|
||||
async with self.session.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response:
|
||||
response_json = await response.json()
|
||||
current_status = response_json['attributes']['current_state']
|
||||
if current_status == "running" or current_status == "starting":
|
||||
|
|
Reference in a new issue