Update utils.py

This commit is contained in:
Benjamin Bay
2019-12-09 22:43:04 -08:00
committed by GitHub
parent 842d89d496
commit b993cb4cd7
+1
View File
@@ -70,6 +70,7 @@ def player_won(text):
"live happily ever after", "live happily ever after",
"(you)? live (forever|eternally|for eternity)", "(you)? live (forever|eternally|for eternity)",
"you (are|become|turn into) (a)? (deity|god)", "you (are|become|turn into) (a)? (deity|god)",
"you ((go|get) (in)?to|arrive (at|in)) (heaven|paradise)",
] ]
return any(re.search(regexp, lower_text) for regexp in won_phrases) return any(re.search(regexp, lower_text) for regexp in won_phrases)