Bot keeps track of time, senders/recipients, loads filters from YAML files
Switched the graph type to 'labeled', which required adding *.py files to Python's NetworkX directory. Now nodes can contain extra data that isn't involved in the hashing of the main node data.
Had to install PyYAML since Python doesn't come with it. I added a README.txt that mentions this, in case anyone tries to run this on a new Python installation without reading this note.
There's a ton of print statements, but I decided to leave them in there since they're very descriptive and give you a clear idea of what it's doing at every step of the reply process. Hence, I put 'if debug: print...' in front of all of them (I may have missed a few, I haven't tried running with debug prints disabled yet).
sigartbot.py now passes the senders and recipients who said each message into the brain functions to aid with the new timing feature, which makes sure messages like "hello" are only said at the beginning of conversations, and "hey, I'm back" would only be said after a reasonable amount of time has passed.
|