added gophergo to dependency list in readme

This commit is contained in:
BroodjeAap 2022-12-27 10:34:29 +00:00
parent a839829588
commit 22938031f6
2 changed files with 7 additions and 0 deletions

View file

@ -283,6 +283,7 @@ The following libaries are used in Go-Watch:
- [htmlquery](https://pkg.go.dev/github.com/antchfx/htmlquery) for XPath selectors
- [validator](https://pkg.go.dev/github.com/go-playground/validator/v10@v10.11.0) for user user input validation
- [tgbotapi](https://pkg.go.dev/github.com/go-telegram-bot-api/telegram-bot-api/v5@v5.5.1) for Telegram
- [discordgo](https://pkg.go.dev/github.com/bwmarrin/discordgo) for Discord
- [cron](https://pkg.go.dev/github.com/robfig/cron/v3@v3.0.0) for job scheduling
- [viper](https://pkg.go.dev/github.com/spf13/viper@v1.12.0) for config management
- [gjson](https://pkg.go.dev/github.com/tidwall/gjson@v1.14.2) for JSON selectors

View file

@ -172,6 +172,12 @@ func (web *Web) initNotifiers() {
web.notifiers["Discord"] = &discordBot
}
}
if viper.IsSet("notifiers.email") {
emailBot := notifiers.EmailNotifier{}
if emailBot.Open() {
web.notifiers["Email"] = &emailBot
}
}
}
func (web *Web) pruneDB() {