aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'types.go')
-rw-r--r--types.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/types.go b/types.go
index 98738bd..266eccc 100644
--- a/types.go
+++ b/types.go
@@ -28,6 +28,13 @@ type LuaLstates struct {
Cancel context.CancelFunc
}
+type WatchList struct {
+ AlertChannel string `toml:"alertChannel"`
+ WatchList []string `toml:"watchList"`
+ WatchFiles []string `toml:"watchFiles"`
+ Words []string `toml:"watchWords"`
+}
+
type TomlConfig struct {
IrcServer string `toml:"ircServer"`
IrcNick string `toml:"ircNick"`
@@ -57,6 +64,7 @@ type TomlConfig struct {
WebIRCAddress string `toml:"webIRCAddress"`
Plugins []string `toml:"plugins"`
CustomCommands map[string]CustomCommand `toml:"customCommands"`
+ WatchLists map[string]WatchList `toml:"watchList"`
LuaStates map[string]LuaLstates
Temp float64 `toml:"temp"`
RequestTimeout int `toml:"requestTimeout"`