mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +00:00
Support templating in automessages
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
64daf6ef80
commit
5d44822a27
1 changed files with 5 additions and 1 deletions
|
@ -113,7 +113,11 @@ func (a *autoMessage) Send(c *irc.Client) error {
|
|||
a.lock.Lock()
|
||||
defer a.lock.Unlock()
|
||||
|
||||
msg := a.Message
|
||||
msg, err := formatMessage(a.Message, nil, nil, nil)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "preparing message")
|
||||
}
|
||||
|
||||
if a.UseAction {
|
||||
msg = fmt.Sprintf("\001ACTION %s\001", msg)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue