From 3ce419ad9c316824555dcd70e09e2e2edbee5819 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Wed, 12 Jan 2022 23:21:00 +0100 Subject: [PATCH] Forgot to re-add custom functions after refactor --- modules/twitch/modules.alerts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/twitch/modules.alerts.go b/modules/twitch/modules.alerts.go index f3b4adf..5cc37b1 100644 --- a/modules/twitch/modules.alerts.go +++ b/modules/twitch/modules.alerts.go @@ -484,7 +484,7 @@ func (m *BotAlertsModule) compileTemplates() { } func (m *BotAlertsModule) addTemplate(templateList map[int]*template.Template, id int, msg string) { - tpl, err := template.New("").Funcs(sprig.TxtFuncMap()).Parse(msg) + tpl, err := template.New("").Funcs(m.bot.customFunctions).Funcs(sprig.TxtFuncMap()).Parse(msg) if err != nil { m.bot.logger.WithError(err).Error("error compiling template") return