add emailer enabled to config, added todo since its a little wrong

This commit is contained in:
Bel LaPointe
2022-01-10 00:26:01 -05:00
parent 70f15434ff
commit f4c4e9cfbc
4 changed files with 8 additions and 2 deletions

View File

@@ -22,6 +22,9 @@ func main() {
go func() {
c := time.NewTicker(time.Minute)
for range c.C {
if !config.Get().EmailerEnabled {
continue
}
lock.Lock()
if err := email(); err != nil {
log.Print(err)