diff --git a/uqcsbot/minecraft.py b/uqcsbot/minecraft.py index bc60f98..fb32864 100644 --- a/uqcsbot/minecraft.py +++ b/uqcsbot/minecraft.py @@ -92,8 +92,8 @@ async def mcwhitelist(self, interaction: discord.Interaction, username: str): await interaction.response.send_message(response[0]) db_session.close() - - @app_commands.command() + + @app_commands.command() @app_commands.describe(username="Minecraft username to unwhitelist.") @yelling_exemptor(input_args=["username"]) async def mcunwhitelist(self, interaction: discord.Interaction, username: str): @@ -114,7 +114,9 @@ async def mcunwhitelist(self, interaction: discord.Interaction, username: str): ) else: # Send the RCON command to remove the user from the whitelist - response_remove = await self.send_rcon_command(f"whitelist remove {username}") + response_remove = await self.send_rcon_command( + f"whitelist remove {username}" + ) logging.info(f"[MINECRAFT] whitelist remove {username}: {response_remove}") # Send the RCON command to kick the player from the server @@ -133,9 +135,11 @@ async def mcunwhitelist(self, interaction: discord.Interaction, username: str): colour=Colour.red(), # Use red to indicate removal ) - await interaction.response.send_message(f"{response_remove[0]}\n{response_kick[0]}") + await interaction.response.send_message( + f"{response_remove[0]}\n{response_kick[0]}" + ) - db_session.close() + db_session.close() mcadmin_group = app_commands.Group( name="mcadmin", description="Commands for managing the UQCS Minecraft server" @@ -179,4 +183,4 @@ async def mcadmin(self, interaction: discord.Interaction, command: str): async def setup(bot: UQCSBot): - await bot.add_cog(Minecraft(bot)) \ No newline at end of file + await bot.add_cog(Minecraft(bot))