aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-06-15 13:43:57 +0000
committerterminaldweller <devi@terminaldweller.com>2024-06-15 13:43:57 +0000
commit20f83572448187f806095ee0a8cc5b30bff72a93 (patch)
tree4c36696a6629b8dc6615fc6e98a67872923ce86d /types.go
parentadded a shell.nix for pgformatter, and a wip trigger for db size maintenance (diff)
downloadmilla-20f83572448187f806095ee0a8cc5b30bff72a93.tar.gz
milla-20f83572448187f806095ee0a8cc5b30bff72a93.zip
added watchlists
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"`