Make quote tell prefix case insensitive

This commit is contained in:
2021-10-07 15:57:00 +02:00
parent e8aec3be57
commit 950f1dff3e

2
bot.py
View File

@@ -871,7 +871,7 @@ async def quote_tell_slash(ctx: SlashContext, author: str, prefix: Optional[str]
return
if prefix is not None:
for quote in quotes:
if quote.startswith(prefix):
if quote.lower().startswith(prefix.lower()):
await _do_quote(ctx, author, quote, tts)
return