userMessageContains

abstract fun userMessageContains(substring: String)(source)

Specifies that the user's message must contain the provided substring.

Parameters

substring

The substring that the user's message should contain.


inline fun userMessageContains(builderAction: StringBuilder.() -> Unit)(source)

Specifies a condition that the user's message must contain a dynamically constructed string. The string can be built using a lambda with a StringBuilder receiver.

Parameters

builderAction

A lambda with a receiver of type StringBuilder, used to build the desired content that the user's message should contain.