Nenhuma descrição http://bits.zero9f9.com/pybot
Matt Weller 0002c3fd76 working on bitbucket integration module | 10 anos atrás | |
---|---|---|
modules | 10 anos atrás | |
steamapi | 10 anos atrás | |
.gitignore | 10 anos atrás | |
CHANGES | 10 anos atrás | |
README.md | 10 anos atrás | |
__init__.py | 11 anos atrás | |
ascii.py | 12 anos atrás | |
battlelog.py | 12 anos atrás | |
bf3api.py | 12 anos atrás | |
bot.py | 10 anos atrás | |
botbrain.py | 10 anos atrás | |
conferror.py | 11 anos atrás | |
confman.py | 10 anos atrás | |
db.py | 10 anos atrás | |
event.py | 10 anos atrás | |
logger.py | 10 anos atrás | |
mysql_dump | 11 anos atrás | |
pybotrc | 10 anos atrás | |
setup.sh | 10 anos atrás | |
stats.py | 11 anos atrás | |
webwriter.py | 10 anos atrás |
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.