From 37fbb748d30eb324c42421a677b4dad641cb5e8a Mon Sep 17 00:00:00 2001 From: dkay Date: Sun, 19 Apr 2026 01:58:09 -0700 Subject: [PATCH] Add check for empty modmail send commands --- techsupport_bot/commands/modmail.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index 027a9e9d..9a50f050 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -1087,6 +1087,12 @@ async def on_message(self: Self, message: discord.Message) -> None: # Sends a factoid case "send": + if content == "send": + await auxiliary.send_deny_embed( + message="No factoid to send", + channel=message.channel, + ) + return # Replaces \n with spaces so factoid can be called even with newlines query = message.content.replace("\n", " ").split(" ")[1].lower() factoid = (