Nincs leírás http://bits.zero9f9.com/pybot
Matt Weller c75c99cbc8 weather2 update after wunderground api shutdown. proof-of-concept working to openweathermap | 5 éve | |
---|---|---|
.vscode | 6 éve | |
docs | 9 éve | |
modules | 5 éve | |
tests | 9 éve | |
.gitignore | 8 éve | |
.pylintrc | 6 éve | |
.travis.yml | 10 éve | |
CHANGES | 8 éve | |
README.md | 8 éve | |
Vagrantfile | 8 éve | |
bootstrap.sh | 10 éve | |
bot.py | 6 éve | |
botbrain.py | 8 éve | |
conferror.py | 11 éve | |
confman.py | 10 éve | |
db.py | 7 éve | |
event.py | 9 éve | |
lite.py | 8 éve | |
logger.py | 9 éve | |
mysql_dump | 10 éve | |
pybotrc | 9 éve | |
requirements.txt | 9 éve | |
run.sh | 9 éve | |
setup.sh | 8 éve | |
stats.py | 11 éve | |
ubuntu.sh | 10 éve | |
util.py | 8 éve | |
version.py | 8 éve | |
webwriter.py | 10 éve |
he is modular, extensible, multi-threaded (for network independence!), and configurable.
pybot runs on python 2.6 and 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.