aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-03-24 20:59:26 +0000
committerterminaldweller <devi@terminaldweller.com>2025-03-24 20:59:26 +0000
commitdc824ea96667b60ede3ac62b75f18e1faded977d (patch)
tree942149ae3d0d394367dfd1bc469639c1413da240 /types.go
parentadded options to control the exponential backoff reconnects for irc and db (diff)
downloadmilla-dc824ea96667b60ede3ac62b75f18e1faded977d.tar.gz
milla-dc824ea96667b60ede3ac62b75f18e1faded977d.zip
initial support for triggered lua functionsHEADmain
Diffstat (limited to 'types.go')
-rw-r--r--types.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/types.go b/types.go
index be8b064..fd37291 100644
--- a/types.go
+++ b/types.go
@@ -54,10 +54,10 @@ type LuaCommand struct {
}
type TriggeredScripts struct {
- Path string
- FuncName string
- Channels [][]string
- TriggerType []string
+ Path string
+ FuncName string
+ Channels [][]string
+ TriggerTypes []string
}
type RssFile struct {
@@ -190,9 +190,9 @@ func (config *TomlConfig) insertTriggeredScript(path, cmd string, triggerType []
config.TriggeredScripts = make(map[string]TriggeredScripts)
}
config.TriggeredScripts[path] = TriggeredScripts{
- Path: path,
- FuncName: cmd,
- TriggerType: triggerType,
+ Path: path,
+ FuncName: cmd,
+ TriggerTypes: triggerType,
}
}