mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 10:52:31 -05:00
Strip whitespace from trivia answers
This commit is contained in:
@@ -115,7 +115,7 @@ class TriviaSession():
|
|||||||
question = line[0]
|
question = line[0]
|
||||||
answers = []
|
answers = []
|
||||||
for l in line[1:]:
|
for l in line[1:]:
|
||||||
answers.append(l.lower())
|
answers.append(l.lower().strip())
|
||||||
if len(line) >= 2:
|
if len(line) >= 2:
|
||||||
line = {"QUESTION" : question, "ANSWERS": answers} #string, list
|
line = {"QUESTION" : question, "ANSWERS": answers} #string, list
|
||||||
parsed_list.append(line)
|
parsed_list.append(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user