From e4ddee9daa1a231685bbbabdeca9ec83db5c4c49 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 5 Jan 2024 09:36:29 +0000 Subject: [PATCH] fix(nerdify): actually fixed the error message --- nerdify/nerdify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nerdify/nerdify.py b/nerdify/nerdify.py index b909b6c..bd71b84 100644 --- a/nerdify/nerdify.py +++ b/nerdify/nerdify.py @@ -34,9 +34,9 @@ class Nerdify(commands.Cog): messages = [message async for message in ctx.channel.history(limit=2)] # [0] is the command, [1] is the message before the command text = messages[1].content - if text is None: - await ctx.send(chat_formatting.error("I can't translate that!")) - return + if text == "": + await ctx.send(chat_formatting.error("I can't translate that!")) + return await self.type_message( ctx.channel, self.nerdify_text(text),