diff --git a/noncommands/quotes.py b/noncommands/quotes.py index 3ef6b15..0c3e411 100644 --- a/noncommands/quotes.py +++ b/noncommands/quotes.py @@ -22,11 +22,13 @@ async def quote(self,keywords): json_data = json.load(f) quotes = list(json_data['teacherQuotes']) matches = [] + keywords = keywords.lower() if keywords: random_quote="Sorry! You made a bad search" for line in quotes: if keywords in line: + if keywords in line.lower(): matches.append(line) if matches: random_quote = random.choice(matches)