mirror of
https://gitlab.com/akasroua/covot
synced 2025-12-24 16:11:55 +01:00
Rewrite bot logic as a sequential conversation
This commit is contained in:
@@ -64,7 +64,7 @@ def parse_boolean_string(value) -> bool:
|
||||
"""
|
||||
Converts string response to a boolean
|
||||
"""
|
||||
mapping = {r"[S-s][i-í]": True, r"[N-n]o": False}
|
||||
mapping = {"si": True, "sí": True, "no": False}
|
||||
return mapping[value]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user