mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +00:00
Allow templating in respond_fallback
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ae4ad1a4bb
commit
406c748c8a
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,9 @@ func init() {
|
|||
if r.RespondFallback == nil {
|
||||
return errors.Wrap(err, "preparing response")
|
||||
}
|
||||
msg = *r.RespondFallback
|
||||
if msg, err = formatMessage(*r.RespondFallback, m, ruleDef, nil); err != nil {
|
||||
return errors.Wrap(err, "preparing response fallback")
|
||||
}
|
||||
}
|
||||
|
||||
return errors.Wrap(
|
||||
|
|
|
@ -32,7 +32,7 @@ rules: # See below for examples
|
|||
# Send responding message to the channel the original message was received in
|
||||
- respond: 'Hello chatter' # String, applies templating
|
||||
respond_fallback: 'Oh noes' # String, text to send if the template function causes
|
||||
# an error, does NOT support templating (default: unset)
|
||||
# an error, applies templating (default: unset)
|
||||
|
||||
# Issue a timeout on the user who wrote the chat-line
|
||||
- timeout: 1s # Duration value: 1s / 1m / 1h
|
||||
|
|
Loading…
Reference in a new issue