interface KeywordService (source)
detectKeywordIntent |
If returns not null, a keyword is detected, and the returned intent is used to find the story. Use Intent.keyword to redirect to the default keyword handler. open fun detectKeywordIntent(sentence: String): Intent? |
keywordHandler |
If this method returns not null for the specified keyword, then the returned handler is called. open fun keywordHandler(keyword: String): ((bus: BotBus) -> Unit)? |