Package-level declarations

Types

Behaviour wrapper that injects a lazily-evaluated, cached provider of bot information into the BehaviourContext.

Link copied to clipboard
fun interface SimpleFilter<in T>

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns bot information (result of GetMe) associated with this BehaviourContext, if available.

Link copied to clipboard
suspend fun containsCommand(command: String): <Error class: unknown class>
suspend fun containsCommand(commandRegex: Regex): <Error class: unknown class>
Link copied to clipboard
suspend fun BehaviourContext.containsCommand(command: String, textSources: TextSourcesList): Boolean
suspend fun BehaviourContext.containsCommand(commandRegex: Regex, textSources: TextSourcesList): Boolean
Link copied to clipboard

Use this extension when you want to follow LiveLocation until it will became StaticLocation. This method is synchronous. You may use something like kotlinx.coroutines.launch or kotlinx.coroutines.async to run it asynchronously

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun <T> SimpleFilter<T>?.minus(other: SimpleFilter<T>?): SimpleFilter<T>

Making +! operation. In fact that means that other will be inversed with not and that added to this via plus

Link copied to clipboard
operator fun <T> SimpleFilter<T>.not(): SimpleFilter<T>

Reverse results of this

Link copied to clipboard
infix operator fun <T> SimpleFilter<T>?.plus(other: SimpleFilter<T>?): SimpleFilter<T>

Makes an OR (||) operation between this and other

Link copied to clipboard
infix operator fun <T> SimpleFilter<T>?.times(other: SimpleFilter<T>?): SimpleFilter<T>

Makes an AND (&&) operation between this and other

Link copied to clipboard
operator fun <T> SimpleFilter<T>.unaryMinus(): SimpleFilter<T>

Works as not