tock / ai.tock.bot.definition / StoryHandlerDefinition / answerWith

answerWith

open fun answerWith(default: CharSequence? = null, messageProvider: () -> Any?): Unit (source)

Answers with the specified parameters.

Parameters

default - used if messageProvider returns null

messageProvider - provides the answer - a message or a list of messages