P+ League Chatbot(unofficial)(deprecated)
MIT License
You need Github, LINE, Heroku accounts to deploy this bot.
Fill in the following environment variables:
LINE_CHANNEL_ACCESS_TOKEN=
LINE_CHANNEL_SECRET=
DATABASE_URL=postgres://USER:[email protected]:5432/postgres
You need to modify DATABASE_URL as your postgresql settings.
https://{YOUR_URL}/webhooks/line
.env
file.
Run Scripts/
profiles first, sync official website data to database as crawler.
first terminal window
cp .env.example .env # Modify variables value
# By docker (choose one)
docker-compose up # and go to DOCKER_IP:4040
# By localized (choose one)
pip install -r requirements.txt --user
python api.py
ngrok http 5000
or maybe you have npm environment:
npx ngrok http 5000
clock
button to schedule corn.Heroku Postgres
and it would create DATABASE_URL
environment variable automatically.If you are not sure where are files in, use following up commands:
heroku run bash
heroku logs --tail
MIT License