forked from cswimr/SeaCogs
fix(nerdify): actually fixed the error message
This commit is contained in:
parent
b483d73368
commit
e4ddee9daa
1 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ class Nerdify(commands.Cog):
|
||||||
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
|
text = messages[1].content
|
||||||
if text is None:
|
if text == "":
|
||||||
await ctx.send(chat_formatting.error("I can't translate that!"))
|
await ctx.send(chat_formatting.error("I can't translate that!"))
|
||||||
return
|
return
|
||||||
await self.type_message(
|
await self.type_message(
|
||||||
ctx.channel,
|
ctx.channel,
|
||||||
self.nerdify_text(text),
|
self.nerdify_text(text),
|
||||||
|
|
Loading…
Reference in a new issue