From 20f83572448187f806095ee0a8cc5b30bff72a93 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 15 Jun 2024 09:43:57 -0400 Subject: added watchlists --- types.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'types.go') 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"` -- cgit v1.2.3