A hubot adaptor for line bot api trial
- Get line bot api trial account.
- Create bot account.
- Set callback url like
https://<hubot hostname>:443/hubot/incoming - Set Server IP Whitelist
- Set callback url like
npm install hubot-line-trial --save
The adapter requires the following environment variables to be defined prior to run a hubot instance.
Set with export command on Non-Heroku environment or
heroku config:add command on Heroku.
Check Channel ID, Channel Secret, MID on LINE developers page.
LINE_CHANNEL_ID- The channel ID for botLINE_CHANNEL_SECRET- The secret for botLINE_CHANNEL_MID- The mid for bot
FIXIE_URLdefault: none - This is automatically set when using with fixie on herokuHUBOT_ENDPOINTdefault: /hubot/incoming - The path of incoming URL of hubotLINE_ENDPOINT_URLdefault:https://trialbot-api.line.me/v1/events- endpoint for line bot api
After setting environment variables, run hubot with line-trial adapter.
bin/hubot -a line-trial
The MIT License. See LICENSE file.