Welcome here!
This is base on aws-line-echo-bot's version, using serverless to build a line echo bot and import sentry to catch error by flask in AWS.
Topic link: url
- Line developer account
- Line Message API
- Sentry account
- Install serverless via npm
$ npm install -g serverless
- Setup your AWS ceritficate
export AWS_ACCESS_KEY_ID=<your-key-here>
export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>
- Clone this project
$ serverless install --url https://github.com/louis70109/aws-line-wsgi-python -n <YOUR_FILE_NAME>
$ cd <YOUR_FILE_NAME>/
- Rename
.env.sample
to.env
and insert key in file.
SENTRY_DSN=
LINE_CHANNEL_TOKEN=
LINE_CHANNEL_SECRET_KEY=
- Deploy the webhhok function
npm install
pip install -r requirements.txt
serverless deploy
- You may have like this domain
- Copy and Paste domain in your LINE bot account
-
If have logging
waring
,error
, Internal(500) or Traceback it will send you Sentry account.
Create by NiJia
The project is available as open source under the terms of the MIT License.