From c2cb87979b9ba05f1ee5341ad12ac37b9f1a8aea Mon Sep 17 00:00:00 2001 From: Andrew Brown <92134285+andrewj-brown@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:15:45 +1000 Subject: [PATCH] remove yelling exemptor from mcwhitelist this causes a timeout (?) when whitelisting, sometimes. idk why. It's pointless to have the exemptor on this command anyway, because capitalising a minecraft username will probably cause it to stop working. --- uqcsbot/minecraft.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/uqcsbot/minecraft.py b/uqcsbot/minecraft.py index 534ea8b..5c863dc 100644 --- a/uqcsbot/minecraft.py +++ b/uqcsbot/minecraft.py @@ -11,7 +11,6 @@ from uqcsbot.bot import UQCSBot from uqcsbot.models import MCWhitelist from uqcsbot.utils.err_log_utils import FatalErrorWithLog -from uqcsbot.yelling import yelling_exemptor RCON_ADDRESS = os.environ.get("MC_RCON_ADDRESS") RCON_PORT = os.environ.get("MC_RCON_PORT") @@ -75,7 +74,6 @@ async def mcplayers(self, interaction: discord.Interaction): @app_commands.command() @app_commands.describe(username="Minecraft username to whitelist.") - @yelling_exemptor(input_args=["username"]) async def mcwhitelist(self, interaction: discord.Interaction, username: str): """Adds a username to the whitelist for the UQCS server.""" db_session = self.bot.create_db_session()