tock / ai.tock.bot.engine / BotRepository / installBots

installBots

fun installBots(routerHandlers: List<(Router) -> Any?>, createApplicationIfNotExists: Boolean = true, startupLock: Lock? = null): Unit (source)

Installs the bot(s).

Parameters

routerHandlers - the additional router handlers

createApplicationIfNotExists - create an nlp application if not exists

startupLock - if not null, wait do listen until the lock is released