Fix capitalization in quote command

This commit is contained in:
2021-01-27 16:20:28 +01:00
parent f434ab2bdf
commit 8b56942cf3

3
bot.py
View File

@@ -263,7 +263,8 @@ async def quote_command(ctx: commands.Context, author: Optional[str], *, quote:
else:
author = author.strip().title()
if quote:
quote = quote.strip().capitalize()
quote = quote.strip()
quote = quote[0].upper() + quote[1::]
if author in quotes:
author_quotes: List[str] = quotes[author]
regex = re.compile(r'[\W]')