LINE Chatbot to Make QA Life Easier
- Python 3.6
Please follow the steps on this page: https://developers.line.me/en/docs/messaging-api/getting-started/
export LINE_CHANNEL_SECRET=<your channel secret>
export LINE_CHANNEL_ACCESS_TOKEN=<your channel access token>
export JENKINS_URL=<your Jenkins URL>
export JENKINS_USER=<your Jenkins Username>
export JENKINS_USER_TOKEN=<your Jenkins User Token> *
export VIDEO_BUCKET_URL_PREFIX=<Video Storage Url> *
-
JENKINS_USER_TOKEN: You can create your own Jenkins User Token by following steps below
- Login to your Jenkins
- Click at your username
- Click Configure
- Click Show API Token or create a new one
-
VIDEO_BUCKET_URL_PREFIX: I recommended using Amazon S3 or public cloud storage to store your recorded videos
sh$ virtualenv -p python3 venv
sh$ source venv/bin/activate
sh$ pip install -r requirements.txt
sh$ python app.py
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:8666/ (Press CTRL+C to quit)
sh$ curl -i -X GET http://localhost:8666/
HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 16
Server: Werkzeug/0.14.1 Python/3.6.5
Date: Fri, 03 Aug 2018 03:41:19 GMT
{"status":"up"}