kenakamu / generator-line-bot

yeoman template for LINE Bot
MIT License
4 stars 4 forks source link
bot line

# LINE Bot template generator for yeoman 日本語はこちら

This repository contains generator of LINE Bot for yeoman. To use the package, install yeoman and the generator.

npm install -g yo
npm install -g generator-line-bot

This is optimized for Visual Studio Code, I strongly recommend using Visual Studio Code as editor. You can install it from Visual Studio Code download.

Goal

The goal of this project is to let developer start LINE Bot developement super quick. It should be like this.

  1. generate project by yeoman
  2. Open via Visual Studio.
  3. F5 to start debugging.

If you find any issue which doesn't meet this goal, please log issue or PR.

How to use

  1. To generate the application as "MyBot" with C# :
yo line-bot MyBot --csharp
  1. It also supports other languages. Change the last option

    • go
    • nodejs
    • python
    • ruby If you select csharp, it will ask you project type, either Azure Function or Web API. You can specify it as option too.
      yo line-bot MyBot --csharp --webapi
  2. It will ask you for ChannelSecret and Token. Pass the correct values.

  3. Open the generated folder via VSCode and you are good to go.

  4. Visual Studio Code will let you know which extension you should install. Follow the instruction and install them as needed.

  5. Simply press F5 will start debug the application.

Other things you need to know

C

There are two project types. Azure Function or Web API.

Azure Function

Node.js

python

Ruby

Other resources

I will write detail step by step blog later.