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 displays Hello World in the console, type the following command.
Then, the src/listeners/helloWorld.ts
file will be ready to be implemented.
You can use the default naming pattern {category or behavior}.{event name}
to organize your listeners. Example:
Additional events
For the proper functioning of the framework, some additional events have been added. Here is a list.
Last updated