@ninjabytes/bot-core

3.0.0 • Public • Published

NinjaBytes Bot Core

Base module for the NinjaBytes team bot.

Built with the purpose of allowing users to create other modules which work on a plug-and-play fashion.

This module includes:

  • Simple clock module, which triggers an event at each 00 second;
  • Base classes for Models and Modules.

Environment Variables

  • HTTP_SERVER_ENABLED - Should the HTTP server be enabled? Pass true to enabled it.
  • HTTP_SERVER_PORT - Port on which the HTTP server will listen (defaults to 3000).
  • HTTP_SERVER_SESSION_KEY - Key to use on Koa Sessions (defaults to HTTP_SERVER_SESSION_KEY).

Triggered Events

  • clock-trigger - Once per minute, always at second 00.

Readme

Keywords

none

Package Sidebar

Install

npm i @ninjabytes/bot-core

Weekly Downloads

1

Version

3.0.0

License

ISC

Unpacked Size

15.2 kB

Total Files

18

Last publish

Collaborators

  • d3c0d3dpt