From c65fdd698cd788e4a9dc862eb6b56eacbf9a8206 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 02:19:00 -0500 Subject: [PATCH] fix(pterodactyl): pylint fixes --- pterodactyl/pterodactyl.py | 3 +-- pterodactyl/websocket.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index 9a9c931..ba8c80a 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -109,8 +109,7 @@ class Pterodactyl(commands.Cog): if current_status == action_ing: if isinstance(ctx, discord.Interaction): return await ctx.response.send_message(f"Server is already {action_ing}.", ephemeral=True) - else: - return await ctx.send(f"Server is already {action_ing}.") + return await ctx.send(f"Server is already {action_ing}.") if current_status in ["starting", "stopping"]: if isinstance(ctx, discord.Interaction): diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 1c72880..15d1cb0 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -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)) logger.debug("Chat message sent to Discord") else: - logger.warn("Chat channel not set. Skipping sending chat message to Discord") + logger.warning("Chat channel not set. Skipping sending chat message to Discord") async def generate_join_leave_embed(username: str, join: bool) -> discord.Embed: embed = discord.Embed()