mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Fixed bots. did things
This commit is contained in:
1 parent
a8b397a44f
commit
4ba577b243
5 files changed
+55
-32
No files matched your search
@@ -295,7 +295,7 @@ def valid_answer(answer, guess):
|
||||
# "answers" acidentally have punctuation or other things in them
|
||||
guess = re.sub(r'\W+', '', guess)
|
||||
answer = re.sub(r'\w+', '', str(answer).lower())
|
||||
return (msg == answer or msg == p.number_to_words(answer))
|
||||
return (guess == answer or guess == p.number_to_words(answer))
|
||||
|
||||
def challenge_response(user, time, msg):
|
||||
global challenges
|
||||
|
||||
Reference in new issue
Block a user