Try this on http://uniwhere.xyz
Steps to get this running - I hope:
- clean ubuntu server (14.04) with ssh keys set up
- create a user on the server
- edit
config/uniwherebot.conf
andfabfile.py
to update the user - edit
fabfile.py
with the server's ip cd
(locally) tobot_app/
, rungit init
andgit remote add production root@<your_ip_or_domain>:/home/git/uniwherebot.git
- run
fab create
. This will set up everything. it may go wrong. check yourconfig/
files and so on, pay attention to errors as they may help you. - ssh into your server,
cd
tobot_app
andcp settings.ini.sample settings.ini
, then editsettings.ini
. - add a cronjob with
cd /path/to/bot_app/ && python updatedb.py
in order to update your local db from http://unidata.xyz. - to test it out (be careful, also the tests may have errors),
cd test/
,cp text_settings.ini.sample text_settings.ini
and edittest_settings.ini
. Then you can runpython pytest.py
to run a elementary test, or you can fake some message POSTing withpython fake_message.py
.