Fix early statement in quote command

This commit is contained in:
2021-01-27 16:15:26 +01:00
parent 86a4dbcf56
commit 86a40fcacc

2
bot.py
View File

@@ -262,8 +262,8 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote:
await ctx.channel.send("No quotes present!")
else:
author = author.strip().title()
quote = quote.strip()
if quote:
quote = quote.strip()
if author in quotes:
author_quotes: List[str] = quotes[author]
regex = re.compile(r'[\W]')