@essentialib/bot-manager
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

bot-manager

주요 카카오톡 라이브러리를 모두 합친 봇 관리자 모듈

  • CronJob
  • DBManager
  • Command

[!WARNING] src 폴더의 코드를 npm run build 또는 npm run build-js 명령어로 트랜스파일해 생성되는 dist 폴더를 배포합니다.

Examples

const BotManager = require('bot-manager').get(BotManager);
const bot = BotManager.getCurrentBot();

let { StructuredCommand, NaturalCommand } = require('bot-manager/index');
let Event = require('bot-manager/Event').Event;

bot.addCommand(new StructuredCommand.Builder()
    .setName('test')
    .setExecute((self, chat, channel, args) => {
        channel.send('test');
    })
    .build()
);

bot.on(Event.MESSAGE, (chat, channel) => {
    channel.send('hello');
});

bot.start();

Readme

Keywords

none

Package Sidebar

Install

npm i @essentialib/bot-manager

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.11 MB

Total Files

192

Last publish

Collaborators

  • rhseung