No Description http://bits.zero9f9.com/pybot
Matt Weller 0002c3fd76 working on bitbucket integration module | 10 years ago | |
---|---|---|
modules | 10 years ago | |
steamapi | 10 years ago | |
.gitignore | 10 years ago | |
CHANGES | 10 years ago | |
README.md | 10 years ago | |
__init__.py | 11 years ago | |
ascii.py | 12 years ago | |
battlelog.py | 12 years ago | |
bf3api.py | 12 years ago | |
bot.py | 10 years ago | |
botbrain.py | 10 years ago | |
conferror.py | 11 years ago | |
confman.py | 10 years ago | |
db.py | 10 years ago | |
event.py | 10 years ago | |
logger.py | 10 years ago | |
mysql_dump | 11 years ago | |
pybotrc | 10 years ago | |
setup.sh | 10 years ago | |
stats.py | 11 years ago | |
webwriter.py | 10 years ago |
pybot is a python irc bot. he is a project.
he is modular, extensible, multi-threaded, and configurable.
./setup.sh
. It will check for dependencies and create a mysql_init file../bot.py pybotrc
Longer explanation: pybot requires mysqldb. It's probably in your package manager. It will run without it, it'll just throw lots of exceptions. SQLite integration and no-db (pickle) support are in the works.
Run ./setup.sh
and follow the prompts. It will create a mysql_init file, which you can then run against mysql with mysql -p < mysql_init
. This will create your database and add a user with full privileges on that database. Your bot will run as this user.
Put that information into the pybotrc.
If you do not run ./setup.sh
you will have to perform the step below.
Add a mysql user for pybot with permissions to update, insert, and delete from the created tables.
Logged into mysql: grant all on <dbname>.* to '<username>' identified by '<password>';
Run the included mysql_dump file (as root, mysql -p <pybot's database name> < mysql_dump
).
Set his dbpass in the config file (pybotrc) to the password you've given him.
Copy that config file to the home folder of whatever user will be running the bot. (~user/.pybotrc)
As that user, ./bot.py.
This project uses smiley's steamapi for its steam integration, and PRAW (python reddit API wrapper) for the redditinfo module.