tock / ai.tock.bot.connector.slack / sendToSlack

sendToSlack

fun <T : Bus<T>> T.sendToSlack(delay: Long = defaultDelay(currentAnswerIndex), messageProvider: T.() -> SlackConnectorMessage): T (source)

Sends a Slack message only if the ConnectorType of the current BotBus is slackConnectorType.