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
suspend fun BehaviourContext.botInfo(): <Error class: unknown class>?

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

Link copied to clipboard
suspend fun containsCommand(commandRegex: <Error class: unknown class>): <Error class: unknown class>
suspend fun containsCommand(command: String): <Error class: unknown class>
Link copied to clipboard
suspend fun BehaviourContext.containsCommand(commandRegex: <Error class: unknown class>, textSources: <Error class: unknown class>): <Error class: unknown class>
suspend fun BehaviourContext.containsCommand(command: String, textSources: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
suspend fun BehaviourContext.followLocation(message: <Error class: unknown class><<Error class: unknown class>>, onLocation: BehaviourContextAndTypeReceiver<Unit, <Error class: unknown class>>)

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>
operator fun <T> BehaviourContextAndTwoTypesReceiver<Boolean, T, <Error class: unknown class>>.not(): <Error class: unknown class>

Reverse results of this

Link copied to clipboard
infix operator fun <T> SimpleFilter<T>?.plus(other: SimpleFilter<T>?): SimpleFilter<T>
operator fun <T> BehaviourContextAndTwoTypesReceiver<Boolean, T, <Error class: unknown class>>.plus(other: BehaviourContextAndTwoTypesReceiver<Boolean, T, <Error class: unknown class>>): <Error class: unknown class>

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

Link copied to clipboard
infix operator fun <T> SimpleFilter<T>?.times(other: SimpleFilter<T>?): SimpleFilter<T>
operator fun <T> BehaviourContextAndTwoTypesReceiver<Boolean, T, <Error class: unknown class>>.times(other: BehaviourContextAndTwoTypesReceiver<Boolean, T, <Error class: unknown class>>): <Error class: unknown class>

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

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

Works as not

Link copied to clipboard