aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
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,
}
}