diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-11-04 18:43:06 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-11-04 18:43:06 +0000 |
commit | db0110393f70987c9b87643594d18df935ef91d5 (patch) | |
tree | b61219f1d4238f4b5ad1d3d2b4d8d611115a0f11 /types.go | |
parent | added openrouter as a provider (diff) | |
download | milla-db0110393f70987c9b87643594d18df935ef91d5.tar.gz milla-db0110393f70987c9b87643594d18df935ef91d5.zip |
added the ability to use channels with password, fixes 35
Diffstat (limited to 'types.go')
-rw-r--r-- | types.go | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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( |