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