diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-06-15 13:43:57 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-06-15 13:43:57 +0000 |
commit | 20f83572448187f806095ee0a8cc5b30bff72a93 (patch) | |
tree | 4c36696a6629b8dc6615fc6e98a67872923ce86d /types.go | |
parent | added a shell.nix for pgformatter, and a wip trigger for db size maintenance (diff) | |
download | milla-20f83572448187f806095ee0a8cc5b30bff72a93.tar.gz milla-20f83572448187f806095ee0a8cc5b30bff72a93.zip |
added watchlists
Diffstat (limited to 'types.go')
-rw-r--r-- | types.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"` |