fix(nerdify): fixed the command nerdifying the error message
All checks were successful
Pylint / Pylint (3.11) (push) Successful in 41s

This commit is contained in:
Seaswimmer 2024-01-05 09:34:46 +00:00
parent 7edbaa7c41
commit b483d73368
Signed by: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -33,7 +33,10 @@ class Nerdify(commands.Cog):
if not text: if not text:
messages = [message async for message in ctx.channel.history(limit=2)] messages = [message async for message in ctx.channel.history(limit=2)]
# [0] is the command, [1] is the message before the command # [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( await self.type_message(
ctx.channel, ctx.channel,
self.nerdify_text(text), self.nerdify_text(text),