PrefixPolicy

In what way the contents of a IRCEvent must start (be "prefixed") for an annotated function to be allowed to trigger.

Values

ValueMeaning
direct

The annotated event handler will not examine the IRCEvent.content member at all and will always trigger, as long as all other annotations match.

prefixed

The annotated event handler will only trigger if the IRCEvent.content member starts with the CoreSettings.prefix (e.g. "!"). All other annotations must also match.

nickname

The annotated event handler will only trigger if the IRCEvent.content member starts with the bot's name, as if addressed to it.

In QUERY events this instead behaves as PrefixPolicy.direct.

Meta