tock / ai.tock.bot.definition / EventListener

EventListener

interface EventListener (source)

Listen all events - this is the standard process to handle Event that are not Action (when you need to handle them).

You can also intercept Actions if useful.

To be declared in BotDefinition.eventListener.

Functions

listenEvent

Listen new event.

abstract fun listenEvent(controller: ConnectorController, connectorData: ConnectorData, event: Event): Boolean

Inheritors

EventListenerBase

Base implementation of EventListener.

open class EventListenerBase : EventListener