public EventListener
Listen all events - this is the standard process to handle class Event that are not Action (when you need to handle them).
You can also intercept Actions if useful.
To be declared in BotDefinition.eventListener.
class Event,
Action,
Action,
BotDefinition.eventListenerboolean listenEvent(@NotNull
ConnectorController controller,
@NotNull
ConnectorData connectorData,
@NotNull
Event event)
Listen new event.
controller - the controllerconnectorData - the connector specific dataevent - the new event