Giter Club home page Giter Club logo

bob-the-bot's Introduction

Built on the shoulder of giants, especially https://github.com/hidehiro98/

LINE Bot 101

日本語ドキュメント

Line Bot example (scan the QR code with your Line app)

qr code

What we use

CAUTION!

DO NOT INCLUDE 'line' in the name of provider and channel. If you do so, you cannnot create the provider nor the channel.

Setup

MacOS

Install Heroku

If you don't have brew, do this first

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then do,

brew install heroku/brew/heroku

Alternative option: install by dowloading the Heroku Installer.

Install Git

Download Git here and install it

Ubuntu

Install Heroku

sudo snap install --classic heroku

Install Git

apt-get install git

Windows

Install Heroku

Download the Heroku Installer and install it.

Install Git

Download Git here and install it

Get the code up and running

Open a terminal (search for "Terminal" (Mac, Ubuntu) or "Command Prompt" (Windows) in your OS search bar).

We will dowload the bot code from Github, then we will push it to Heroku:

git clone https://github.com/yannklein/bob-the-bot.git [your-bot-name]
cd [your-bot-name]
heroku create [your-bot-name]
git push heroku master

We will configure the keys to access the LINE API service:

Replace [YOUR_LINE_CHANNEL_SECRET] and [YOUR_LINE_ACCESS_TOKEN] by your own keys.

heroku config:set LINE_CHANNEL_SECRET=[YOUR_LINE_CHANNEL_SECRET]
heroku config:set LINE_ACCESS_TOKEN=[YOUR_LINE_ACCESS_TOKEN]

Example (do not copy/paste in your terminal):

heroku config:set LINE_CHANNEL_SECRET=f73d5df3fagu3g301856e1dc4cfcf3e1
heroku config:set LINE_ACCESS_TOKEN=FbKBF7cB1HReh9lIc6M3bDz8Rd6D+0f1kvBaJF93QadC7SsGpHP9K1EOOYkbwRThXHdVSSupJ4TgKMEtE/LbnE2heif2GZci+ntGdP89cGfrbLiofFFBlrFygi58f/B5UsvqkvlfNM7BHddRZhhV2RgdB04t89/1O/w1cDnyilFU=

Optional: we will set the key for Watson image recognition:

heroku config:set IBM_IAM_API_KEY=[YOUR_IAM_API_KEY]

Slides

https://www.slideshare.net/HidehiroNagaoka/le-wagon-tokyo-line-bot-101

Docs

Docs of LINE Messagin API

Docs of Sinatra

Docs of IBM Watson

bob-the-bot's People

Contributors

dependabot[bot] avatar hidehiro98 avatar yannklein avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.