https://github.com/diodechain/line-bot-template
Chatbot template for Line
https://github.com/diodechain/line-bot-template
Last synced: 3 months ago
JSON representation
Chatbot template for Line
- Host: GitHub
- URL: https://github.com/diodechain/line-bot-template
- Owner: diodechain
- License: apache-2.0
- Created: 2020-09-02T06:22:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-09T01:20:58.000Z (almost 5 years ago)
- Last Synced: 2024-04-17T06:56:20.995Z (about 1 year ago)
- Language: Go
- Size: 693 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Line Bot Template
The idea for line bot template is from https://github.com/kkdai/LineBotTemplate. This repo is focus on how to publish your line bot api through diode network, and bridge the line bot with diode gate way service without setting any SSL certificate and domain.## Installation and Usage
1. Create line developer account and setup the message api
Go to developer console https://developers.line.biz/console/.2. Publish line bot through diode network
You can copy & paste below line into a terminal to install the Diode client for your current user on macOS, Linux, Raspberry Pi (or Windows if you have curl).
`$ curl -Ssf https://diode.io/install.sh | sh`
If you are an expert, diode client is opensource, you can also compile diode client from source code: https://github.com/diodechain/diode_go_client.
After diode setup, open terminal and publish line bot to diode network.
`$ diode publish -public [line_bot_port]:80`
If publish works, the line bot address should be `[DIODE GATEWAY ADDRESS]/callback`, eg, my api address is http://0x052bff7eaa8968f164466dc80daa8bc86c0c87d3.diode.link/callback.
3. Setup message api on Line bot Dashboard
Go to message api settings, and update Webhook URL to `[DIODE GATEWAY ADDRESS]/callback`.
### Chinese Tutorial
如果你想看中文版的教學,可以到[這裡](https://medium.com/@sc0vu/%E5%A6%82%E4%BD%95%E9%80%8F%E9%81%8E-diode-network-%E9%96%8B%E7%99%BC-line-%E8%81%8A%E5%A4%A9%E6%A9%9F%E5%99%A8%E4%BA%BA-35be8e5e6a52)