kohlivarun5 / smile-cycle

Bot to cycle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smile-cycle

Bot to cycle

Tutorial can be found here

Create local credentials

The app requires credentials, but we don't want them in git, so create a file such as:

  • gvim credentials.py
TELEGRAM_TOKEN='<TOKEN_FROM_BOT_FATHER'

Getting started:

Run the following to get started

Prepare python2

  • brew install python2
  • echo -e "[install]\nprefix=" > ~/.pydistutils.cfg
  • pip2 install -t lib -r requirements.txt

Setup App-Engine

Install ngrok and expose app

  • brew install node
  • npm i -g ngrok
  • ngrok http 5000
  • Get the address for 5000 (such as https://9011ccc6.ngrok.io) and try that in your browser

Hookup Telegram webhook

Unit tests

python2 -m unittest calculate_arb formatting 

Deploy

  • Deploy the app: gcloud app deploy
  • Set the webhook url for PROD

About

Bot to cycle


Languages

Language:Python 98.4%Language:Shell 1.6%