Skip to content
sern

Sern Emitter

You’re shipped with the SernEmitter class. This EventEmitter listens to

  1. Command modules executing and its status; the module.activate event
  2. Command modules registered and its status; the module.register event
  3. On default, sern creates a single SernEmitter for your bot process.
  4. Any error that occurs; the error event
  5. warn events, where it is possible to throw errors

You can put these and other event listeners into event modules!

You can view all events in the SernEventsMapping interface.