Function to handle commands. Have a function called handleCommand
to your service class to handle commands.
Data sent in the command
Unique name given to the service
Function to report a service being ready
Function to report error during service launch
Error to report
Graceful shutdown of the service. Have a function within your bot class called shutdown
to use this.
To handle errors, return something similar to the following: {err: "error here"}
Call this function when your shutdown function is complete.
ID of the worker
Generated using TypeDoc
The base class for a service