No Description http://bits.zero9f9.com/pybot
Matt Weller 146c880a6f Merge branch 'master' into modules/fixes | 5 years ago | |
---|---|---|
.vscode | 6 years ago | |
docs | 9 years ago | |
modules | 5 years ago | |
tests | 9 years ago | |
.gitignore | 8 years ago | |
.pylintrc | 5 years ago | |
.travis.yml | 10 years ago | |
CHANGES | 8 years ago | |
README.md | 5 years ago | |
Vagrantfile | 8 years ago | |
bootstrap.sh | 10 years ago | |
bot.py | 5 years ago | |
botbrain.py | 5 years ago | |
conferror.py | 11 years ago | |
confman.py | 10 years ago | |
db.py | 7 years ago | |
event.py | 9 years ago | |
lite.py | 8 years ago | |
logger.py | 9 years ago | |
mysql_dump | 10 years ago | |
pybotrc | 9 years ago | |
pylintrc | 5 years ago | |
requirements.txt | 5 years ago | |
run.sh | 9 years ago | |
setup.sh | 8 years ago | |
stats.py | 11 years ago | |
ubuntu.sh | 10 years ago | |
util.py | 8 years ago | |
version.py | 8 years ago | |
webwriter.py | 10 years ago |
he is modular, extensible, multi-threaded (for network independence!), and configurable.
pybot runs on python 2.7, on both windows and linux. python versions > 3 are in the works.
master branch should be stable. feature branches can be broken at any time.
sudo pip install -r requirements.txt
cp pybotrc ~/.pybotrc
)./bot.py
./bot.py -d.
sudo ./bootstrap.sh
to install pybot dependencies such as mysql../setup.sh
. It will check for module dependencies and create a mysql_init file. mysql -p < mysql_init
./bot.py pybotrc
./bot.py -d.
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.
If you have Vagrant locally installed and configured, you can set up pybot by invoking
vagrant up
. Your development environment will be configured, and you can skip step 1 and
2 above. After that, SSH into your VM and do steps 3 through 5 to finish things off.
Here pybot is connected to two networks at once. They are held entirely separately. Modules loaded on one are independent of modules loaded on another. If one server goes down, the other connections to other networks are unaffected.