npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-line-bot

v0.1.9

Published

LINE Bot template generator for your preferred language

Downloads

25

Readme

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
  1. It will ask you for ChannelSecret and Token. Pass the correct values.
  1. Open the generated folder via VSCode and you are good to go.
  2. Visual Studio Code will let you know which extension you should install. Follow the instruction and install them as needed.
  3. 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

  • It is Azure Function v2 application and default port is 7071.
  • make sure you install azure function tools for dotnetcore. For further information, see here

Web API

  • It is dotnet core 2.0 Web API and default port is 5000.

common

  • make sure you install C# extension
  • make sure you install dotnet core 2
  • The template uses Azure Blog Storage for additional features.

Node.js

  • by default, it uses port 3000 when you debug locally. See index.js for more detail.
const port = process.env.PORT || 3000;
app.listen(port, () => {
  console.log(`listening on ${port}`);
});

golang

  • make sure you installed golang
  • make sure you install Go extension.
  • make sure you configured PATH to go command.
  • by default, it uses port 8000 when you debug locally. See .vscode/launch.json for detail.

python

  • makre sure you installed python
  • make sure you install Python extension
  • make sure you configured PATH to python and pip command.
  • by default, it uses port 8000 when you debug locally. see app.py for more detail.
arg_parser.add_argument('-p', '--port', default=8000, help='port')

Ruby

  • makre sure you installed Ruby
  • make sure you installed Ruby extension
  • make sure you configured PATH to Ruby and Gem command.
  • by default, it uses port 4567 when you debug locally. see app.rb for more detail.
set :port, 4567

Other resources

I will write detail step by step blog later.