62a5ce7681
Instead of using a dict, use a shelve so that seen is persistent across phenny reloads. This will cause some more disk IO as we are syncing the shelve every time someone says something. It is probably better to just .close() the shelve when phenny exits (using atexit). Also, clean up some dead code that was left in the module. |
||
---|---|---|
modules | ||
opt | ||
test | ||
.gitignore | ||
README.md | ||
__init__.py | ||
bot.py | ||
icao.py | ||
irc.py | ||
phenny | ||
tools.py | ||
web.py | ||
wiki.py |
README.md
phenny
This is a port of phenny, a Python IRC bot, to Python3. It is currently fairly stable, but it has not been as well-tested as the original. It was developed for #vtluug on OFTC.
New features include many new modules, IPv6 and TLS support (which requires Python 3.2), and unit tests.
Compatibility with existing phenny modules has been mostly retained, but they will need to be updated to run on Python3 if they do not already. All of the core modules have been ported.
Installation
- Run
./phenny
- this creates a default config file - Edit
~/.phenny/default.py
- Run
./phenny
- this now runs phenny with your settings
Enjoy!
Testing
You will need the Python3 versions of python-nose
and python-mock
. To run
the tests, simply run nosetests3
.
Authors
- Sean B. Palmer, http://inamidst.com/sbp/
- mutantmonkey, http://mutantmonkey.in