@nestjs-line/messaging
v0.0.4-alpha.16
Published
A module for creating LINE bots using NestJS, based on LINE Messaging API
Downloads
46
Maintainers
Readme
About
This package uses the best of the NodeJS world under the hood. Nest.js is a progressive framework for creating well-architectured applications. This module provides fast and easy way for creating LINE bots and deep integration with your NestJS application.
Features
- Simple. Flexible. Easy to use.
- Ability to create custom decorators.
- Full support of NestJS guards, interceptors, filters and pipes!
For questions and support please use the Issues.
Installation
Node.js 16.6.0 or newer is required.
$ npm install @nestjs-line/messaging @line/bot-sdk
Usage
Once the installation process is complete, we can import the LineMessagingModule
into the root AppModule
:
import { Module } from '@nestjs/common';
import { LineMessagingModule } from '@nestjs-line/messaging';
@Module({
imports: [
LineMessagingModule.forRoot({
channelSecret: 'secret',
channelAccessToken: 'access_token',
}),
],
providers: [],
})
export class AppModule {}