Fix early statement in quote command
This commit is contained in:
2
bot.py
2
bot.py
@@ -262,8 +262,8 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote:
|
|||||||
await ctx.channel.send("No quotes present!")
|
await ctx.channel.send("No quotes present!")
|
||||||
else:
|
else:
|
||||||
author = author.strip().title()
|
author = author.strip().title()
|
||||||
quote = quote.strip()
|
|
||||||
if quote:
|
if quote:
|
||||||
|
quote = quote.strip()
|
||||||
if author in quotes:
|
if author in quotes:
|
||||||
author_quotes: List[str] = quotes[author]
|
author_quotes: List[str] = quotes[author]
|
||||||
regex = re.compile(r'[\W]')
|
regex = re.compile(r'[\W]')
|
||||||
|
|||||||
Reference in New Issue
Block a user