Update Wiki for new mechanics

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-05-26 14:00:21 +02:00
parent ece2964c9a
commit fe4ef6f2fc
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -12,6 +12,13 @@ permit_allow_moderator: true
# How long to permit on !permit command # How long to permit on !permit command
permit_timeout: 60s permit_timeout: 60s
# Variables are made available in templating (for example useful to disable several
# rules at once using the `disable_on_template` directive)
# Supported data types: Boolean, Float, Integer, String
variables:
myvariable: true
anothervariable: "string"
auto_messages: auto_messages:
- channel: 'mychannel' # String, channel to send message to - channel: 'mychannel' # String, channel to send message to
message: 'Automated message' # String, message to send message: 'Automated message' # String, message to send
@ -24,6 +31,9 @@ auto_messages:
only_on_live: true # Boolean, optional, only send the message when channel is live only_on_live: true # Boolean, optional, only send the message when channel is live
# Disable message using templating, must yield string `true` to disable the automated message
disable_on_template: '{{ ne .myvariable true }}'
rules: # See below for examples rules: # See below for examples
- actions: # Array of actions to take when this rule matches - actions: # Array of actions to take when this rule matches
@ -61,12 +71,18 @@ rules: # See below for examples
# Do not apply cooldown for these badges # Do not apply cooldown for these badges
skip_cooldown_for: [broadcaster, moderator] skip_cooldown_for: [broadcaster, moderator]
# Disable the rule by setting to true
disable: false
# Disable actions when the matched channel has no active stream # Disable actions when the matched channel has no active stream
disable_on_offline: false disable_on_offline: false
# Disable actions on this rule if the user has an active permit # Disable actions on this rule if the user has an active permit
disable_on_permit: false disable_on_permit: false
# Disable actions using templating, must yield string `true` to disable the rule
disable_on_template: '{{ ne .myvariable true }}'
# Disable actions on this rule if the user has one of these badges # Disable actions on this rule if the user has one of these badges
disable_on: [broadcaster, moderator] disable_on: [broadcaster, moderator]