3.0.0 • Published 5 years ago
@ninjabytes/bot-core v3.0.0
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? Passtrue
to enabled it.HTTP_SERVER_PORT
- Port on which the HTTP server will listen (defaults to3000
).HTTP_SERVER_SESSION_KEY
- Key to use on Koa Sessions (defaults toHTTP_SERVER_SESSION_KEY
).
Triggered Events
clock-trigger
- Once per minute, always at second 00.