Aucune description http://bits.zero9f9.com/pybot
Matt Weller 0002c3fd76 working on bitbucket integration module | il y a 10 ans | |
---|---|---|
modules | il y a 10 ans | |
steamapi | il y a 10 ans | |
.gitignore | il y a 10 ans | |
CHANGES | il y a 10 ans | |
README.md | il y a 10 ans | |
__init__.py | il y a 11 ans | |
ascii.py | il y a 12 ans | |
battlelog.py | il y a 12 ans | |
bf3api.py | il y a 12 ans | |
bot.py | il y a 10 ans | |
botbrain.py | il y a 10 ans | |
conferror.py | il y a 11 ans | |
confman.py | il y a 10 ans | |
db.py | il y a 10 ans | |
event.py | il y a 10 ans | |
logger.py | il y a 10 ans | |
mysql_dump | il y a 11 ans | |
pybotrc | il y a 10 ans | |
setup.sh | il y a 10 ans | |
stats.py | il y a 11 ans | |
webwriter.py | il y a 10 ans |
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.