All Projects → fawwaz → line-chatbot-boilerplate

fawwaz / line-chatbot-boilerplate

Licence: other
Opinionated Boilerplate for your Line Messenger Chat Bot

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to line-chatbot-boilerplate

hikari
A Discord API wrapper for Python and asyncio built on good intentions.
Stars: ✭ 631 (+3055%)
Mutual labels:  bot-framework
SharePointAdminBot
SharePoint Administration Bot
Stars: ✭ 19 (-5%)
Mutual labels:  bot-framework
marconibot
Marco... Polo - Poloni.... Marconi... Poloniex Trade bot
Stars: ✭ 24 (+20%)
Mutual labels:  bot-framework
alter-nlu
Natural language understanding library for chatbots with intent recognition and entity extraction.
Stars: ✭ 45 (+125%)
Mutual labels:  bot-framework
spanky.py
Chat-bot overlay framework that can run on top of any python-based bot and call plugins on various events
Stars: ✭ 14 (-30%)
Mutual labels:  bot-framework
steem-bot
Easy automation on top of Steem blockchain
Stars: ✭ 55 (+175%)
Mutual labels:  bot-framework
LineChivas
May the Chivas be with you...
Stars: ✭ 48 (+140%)
Mutual labels:  line-bot
necord
🤖 A module for creating Discord bots using NestJS, based on Discord.js
Stars: ✭ 77 (+285%)
Mutual labels:  bot-framework
sbotify
your personal bot that plays spotify music
Stars: ✭ 25 (+25%)
Mutual labels:  bot-framework
automatron
Personal LINE bot to automate various tasks. Home automation, expense tracking, transaction monitoring
Stars: ✭ 139 (+595%)
Mutual labels:  line-bot
Jasmin-Ransomware
Jasmin Ransomware is an advanced red team tool (WannaCry Clone) used for simulating real ransomware attacks. Jasmin helps security researchers to overcome the risk of external attacks.
Stars: ✭ 84 (+320%)
Mutual labels:  bot-framework
chatto
Chatto is a minimal chatbot framework in Go.
Stars: ✭ 98 (+390%)
Mutual labels:  bot-framework
Holobot
HoloLens bot demo
Stars: ✭ 26 (+30%)
Mutual labels:  bot-framework
awesome-botframework
🤖 A curated list of awesome Microsoft Bot Framework related things
Stars: ✭ 30 (+50%)
Mutual labels:  bot-framework
cerb-release
For over 20 years, teams of all sizes have used Cerb to manage their email workloads. Whether you're a solo founder replying to a few support messages per day, or a team with hundreds of members replying to thousands of messages per hour, you can serve your audience faster with Cerb's time-tested tools. Development at: https://github.com/jstande…
Stars: ✭ 37 (+85%)
Mutual labels:  bot-framework
tradingview-webhooks
Backend service converting tradingview alerts into action.
Stars: ✭ 44 (+120%)
Mutual labels:  bot-framework
Hutoma-Conversational-AI-Platform
Hu:toma AI is an open source stack designed to help you create compelling conversational interfaces with little effort and above industry accuracy
Stars: ✭ 35 (+75%)
Mutual labels:  bot-framework
newbot-framework
Framework to create chatbots on all platforms and on the browser - https://newbot.io
Stars: ✭ 35 (+75%)
Mutual labels:  line-bot
CAI
🤖 又一个 QQ 协议支持库,使用 Python 编写 Yet Another Bot Framework for Tencent QQ Written in Python
Stars: ✭ 121 (+505%)
Mutual labels:  bot-framework
line-bot-sdk-php-tiny
A simple SDK for the LINE Messaging API with PHP.
Stars: ✭ 25 (+25%)
Mutual labels:  line-bot

Line Messenger Chat Bot Boilerplate

An opinionated boilerplate for building Line Messenger Chatbot.

Key Features

Why you should use this boilerplate instead of their plain example code.

  1. It supports Hot Module Replacement so you can code effectively without restarting the server over and over again.
  2. Better abstraction separate between logical operation, state/data manipulation and presentation layer.
  3. Ability to test the bot locally. Immediately test your bot from your local computer without pushing to heroku.
  4. Ability to simulate multiple user simultaneously.
  5. Ability to test your bot even if you don't have any smartphone.

Click the button below to deploy it to heroku.

Deploy

Showcase / Examples

  • Mastermind chatbot (in Production, you can simply add him using this line ID @rgr5367i)
    Demo

How to use

1. Open https://developers.line.me/en/

Login with your Line account, go through then create a new bot follow this guide. There are 3 kinds of accounts, developer trial, Free account and Premium account. If you choose developer trial, you can use LINE push message API. However, your bot can only have up to 50 friends. If you choose Free account, you are unable to use LINE push message API. Your bot may have unlimited friends with this account type. If your bot want to use LINE push message API & unlimited friends, you need to choose Free account and upgrade the account to premium account later.

According to line dashboard, the premium account is free until 30 january 2018. 
You just need to put your credit card number to use premium account without any charge.

2. Get your Line Secret Token

Open your developer console, choose one of your bots. On Channel Secret section click issue. Don't forget to note Channel ID and Channel Access Token too.

3. Deploy the app to heroku

Make sure you have register yourself on heroku. Deploy this boilerplate to heroku by clicking the heroku button above. Fill Channel Secret, Channel ID and Channel Access Token form with the value retrieved in previous step. You may choose whatever App Name you like but you need to remember this for the next step.

Heroku will serve your bot using your App Name
so it will be available under https://[YOUR_APP_NAME].herokuapp.com

4. Update Line Messenger Configuration to Link the bot on heroku

Open your developer console, choose one of your bots. Go through Message Setting section. Enable Webhook by clicking the pen logo in the right and choose Enabled. In the next section, click pen icon, edit Webhook URL with your App Name you've choosen in previous step. Fill it with the following format https://[YOUR_APP_NAME].herokuapp.com/webhook . So if your App Name in step 3 equal to my-example-bot then you need to fill this input with https://my-example-bot.herokuapp.com/webhook.

5. Clone to local

Install Heroku CLI , login to your heroku account by running this command :

heroku login

clone your app, assumming that your App Name is my-example-bot, then you need to clone it to your local machine :

heroku git:clone -a my-example-bot
cd my-example-bot

6. Modify your code

Modify the bot code, read this general guideline

7. Test Your code locally

Copy .env.example , rename it to .env, edit the .env file put your Channel Secret, Channel ID and Channel Access Token there. To test your bot locally, you have to run this command :

npm run dev

Then follow the tutorial described here, (you can simply skip step 1 & 2, go through step 3 there).

8. Deploy changes to heroku

You can follow normal heroku workflow :

git add .
git commit -am "your commit message"
git push heroku master
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].