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