Fix capitalization in quote command
This commit is contained in:
3
bot.py
3
bot.py
@@ -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]')
|
||||
|
||||
Reference in New Issue
Block a user