IMBOT: various fixes (listed below)
Ask.py: ask() takes a tuple'd sentence now instead of a string sentence
Cleaner.py: added two functions to check for garbage input
Commands.py: commands are now only accepted by Darin, Nikhil, and Felix (to prevent EOH users from causing chaos)
Filters/translate html to english.yml: updated to include ampersands in regexp replacing
Log.py: added error catching to SABBrain.txt deletion, because multiple threads can attempt to delete it at the same time (it was crashing, so I assume that's the cause)
MessageQueue.py: uses the new bad-input detectors from the end of Cleaner.py
SABBrain.py:
* put a try/except around is_word_nva() because something is passing it bad input (a period and a quesiton mark instead of a tuple)
* added some logging to compute_sentence_weight() in an attempt to determine if it penalizes repeated sentences correctly
* replaced "error!!!" with "lol", in case it pops up in a real conversation
* the diff says generate_reply() is completely changed, but I'm not sure why... hopefully I'm committing a better version and not an older version
sigartbot.py: now sends typing notifications, but I don't think they actually work
|