tock / ai.tock.bot.connector.alexa / withAlexa

withAlexa

fun <T : Bus<T>> T.withAlexa(messageProvider: () -> AlexaMessage): T (source)

Adds an Alexa ConnectorMessage if the current connector is Alexa. You need to call BotBus.send or BotBus.end later to send this message.