AutoReplyBuilder

DSL builder for configuring automatic reply rules with match conditions and reply actions.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun default(reply: ReplyBuilder.(Message) -> Unit)

Sets the default reply action for messages that don't match any rule.

Link copied to clipboard
fun rule(match: (Message) -> Boolean, reply: ReplyBuilder.(Message) -> Unit)

Adds an auto-reply rule that replies when the match predicate returns true.