tock / ai.tock.bot.connector.slack / withSlack

withSlack

fun <T : Bus<T>> T.withSlack(messageProvider: () -> SlackConnectorMessage): T (source)

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