-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Etsu edited this page Oct 3, 2016
·
3 revisions
add pidgey.py from https://github.com/E7su/pidgey
$ cd bot # change to concrete project
$ pip install virtualenv # read http://www.unix-lab.org/posts/virtualenv/
$ virtualenv venv # create virtual environment in project dir
# this directory should never be commited to git
# so it's just added to .gitignore file
$ source venv/bin/activate # activate virtual environment
$ pip install -r requirements.txt # install required packages to isolated environment
$ source venv/bin/activate # activate virtual environment
export TELEGRAM_TOKEN=1234567890 # add environment variable
ipython server.py # start bot

