From db0110393f70987c9b87643594d18df935ef91d5 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 4 Nov 2024 13:43:06 -0500 Subject: added the ability to use channels with password, fixes 35 --- types.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'types.go') diff --git a/types.go b/types.go index b976840..7f1be93 100644 --- a/types.go +++ b/types.go @@ -32,13 +32,13 @@ type LuaLstates struct { } type WatchList struct { - AlertChannel string `toml:"alertChannel"` - WatchList []string `toml:"watchList"` - WatchFiles []string `toml:"watchFiles"` - Words []string `toml:"watchWords"` - EventTypes []string `toml:"eventTypes"` - FGColor int `toml:"fgColor"` - BGColor int `toml:"bgColor"` + AlertChannel []string `toml:"alertChannel"` + WatchList [][]string `toml:"watchList"` + WatchFiles []string `toml:"watchFiles"` + Words []string `toml:"watchWords"` + EventTypes []string `toml:"eventTypes"` + FGColor int `toml:"fgColor"` + BGColor int `toml:"bgColor"` } type LuaCommand struct { @@ -47,8 +47,8 @@ type LuaCommand struct { } type RssFile struct { - RssFile string `toml:"rssFile"` - Channel string `toml:"channel"` + RssFile string `toml:"rssFile"` + Channel []string `toml:"channel"` } type TomlConfig struct { @@ -106,9 +106,9 @@ type TomlConfig struct { Out bool `toml:"out"` AdminOnly bool `toml:"adminOnly"` pool *pgxpool.Pool - Admins []string `toml:"admins"` - IrcChannels []string `toml:"ircChannels"` - ScrapeChannels []string `toml:"scrapeChannels"` + Admins []string `toml:"admins"` + IrcChannels [][]string `toml:"ircChannels"` + ScrapeChannels [][]string `toml:"scrapeChannels"` } func (config *TomlConfig) insertLState( -- cgit v1.2.3