CommonMessageFilterExcludeCommand

fun CommonMessageFilterExcludeCommand(excludedCommand: String? = null, textBeginOnly: Boolean = true): CommonMessageFilter<*>

Use as initialFilter. Will exclude messages with excludedCommand if it is not null, if null - all messages with commands. If textBeginOnly set to false, all commands inside of message will be taken in attention.

It is supposed, that you will pass command name without / or !

Parameters

excludedCommand

Pass non-null value to search specific command or null (default) to search any command

textBeginOnly

Pass true (default) to check only start of message. Pass false to search in whole text of content