Compare commits

..

No commits in common. "2e5fa81eac64b96c7103846bdc9fc56d1792f714" and "497f6a0a1a206419bdec19e3fe218541aed1e8b7" have entirely different histories.

3 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,7 @@
"disabled": false, "disabled": false,
"min_bot_version": "3.5.0", "min_bot_version": "3.5.0",
"min_python_version": [3, 8, 0], "min_python_version": [3, 8, 0],
"requirements": ["git+https://github.com/SeaswimmerTheFsh/pydactyl", "websockets"], "requirements": ["py-dactyl", "websockets"],
"tags": [ "tags": [
"pterodactyl", "pterodactyl",
"minecraft", "minecraft",

View file

@ -109,7 +109,8 @@ class Pterodactyl(commands.Cog):
if current_status == action_ing: if current_status == action_ing:
if isinstance(ctx, discord.Interaction): if isinstance(ctx, discord.Interaction):
return await ctx.response.send_message(f"Server is already {action_ing}.", ephemeral=True) return await ctx.response.send_message(f"Server is already {action_ing}.", ephemeral=True)
return await ctx.send(f"Server is already {action_ing}.") else:
return await ctx.send(f"Server is already {action_ing}.")
if current_status in ["starting", "stopping"]: if current_status in ["starting", "stopping"]:
if isinstance(ctx, discord.Interaction): if isinstance(ctx, discord.Interaction):

View file

@ -222,7 +222,7 @@ async def send_chat_discord(coginstance: Pterodactyl, username: str, message: st
await webhook.send(content=message, username=username, avatar_url=avatar_url, allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=True)) await webhook.send(content=message, username=username, avatar_url=avatar_url, allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=True))
logger.debug("Chat message sent to Discord") logger.debug("Chat message sent to Discord")
else: else:
logger.warning("Chat channel not set. Skipping sending chat message to Discord") logger.warn("Chat channel not set. Skipping sending chat message to Discord")
async def generate_join_leave_embed(username: str, join: bool) -> discord.Embed: async def generate_join_leave_embed(username: str, join: bool) -> discord.Embed:
embed = discord.Embed() embed = discord.Embed()