Chatbot that can get you Cryptocurrency Price
This is a LINE Chatbot that can get the latest Cryptocurrency Price and Charts from Binance API.
- NGINX
- Node.js
- Docker-Compose
- Express.js
- Puppeteer
To get a local copy up and running follow these simple steps.
- Docker and Docker compose
- Line Official Account Channel Access Token
- SSL Certification and Domain Name
-
Clone the repo
git clone https://github.com/pholawat-tle/crypto-line-bot
-
Go inside the project directory
cd crypto-line-bot
-
Set up SSL certificate and Domain name
- Put the certificates and private key inside nginx/certificates folder
- Change the certificate name and Domain name nginx/default.conf
-
Create a .env file in server/src
nano ./server/src/.env
-
Set the Channel Access Token Variable
ChannelAccessToken=YOUR_ACCESS_TOKEN
-
Run Docker Compose
docker-compose up --build
-
Change the webhook url on LINE Developer Console to
https://yourdomain/api/webhook
Command | Description |
---|---|
!price <symbol> | Get the latest price from Binance API |
!graph <symbol> | Get a screenshot of the chart from Binance API |
The screenshots of the chart are saved inside the server folder and each screenshot will be deleted after 24 hours
Distributed under the MIT License. See LICENSE
for more information.