aboutsummaryrefslogtreecommitdiffstats
path: root/types.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-11-04 18:43:06 +0000
committerterminaldweller <devi@terminaldweller.com>2024-11-04 18:43:06 +0000
commitdb0110393f70987c9b87643594d18df935ef91d5 (patch)
treeb61219f1d4238f4b5ad1d3d2b4d8d611115a0f11 /types.go
parentadded openrouter as a provider (diff)
downloadmilla-db0110393f70987c9b87643594d18df935ef91d5.tar.gz
milla-db0110393f70987c9b87643594d18df935ef91d5.zip
added the ability to use channels with password, fixes 35
Diffstat (limited to '')
-rw-r--r--types.go24
1 files changed, 12 insertions, 12 deletions
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(