From b483d733687a304dbcb948f20ee7dacf0379a73b Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 5 Jan 2024 09:34:46 +0000 Subject: [PATCH] fix(nerdify): fixed the command nerdifying the error message --- nerdify/nerdify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nerdify/nerdify.py b/nerdify/nerdify.py index b4241b7..b909b6c 100644 --- a/nerdify/nerdify.py +++ b/nerdify/nerdify.py @@ -33,7 +33,10 @@ class Nerdify(commands.Cog): if not text: 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 or chat_formatting.error("I can't translate that!") + text = messages[1].content + if text is None: + await ctx.send(chat_formatting.error("I can't translate that!")) + return await self.type_message( ctx.channel, self.nerdify_text(text),