Listener
Create a listener
Like the commands, it is recommended to use the CLI to correctly generate the body of the listener.
CLI pattern
By typing bot add listener -h
you will get this following information.
Example
For a "ready" listener that initializes any metrics, type the following command.
Then, the src/listeners/metrics.ready.ts
file will be ready to be implemented.
Additional events
For the proper functioning of the framework, some additional events have been added. Here is a list.
Last updated