Added patch to add empty notification list

This commit is contained in:
Eduard Urbach 2018-02-27 14:51:10 +01:00
parent e8c2a6ff75
commit d5b01763bb

View File

@ -0,0 +1,23 @@
package main
import (
"fmt"
"github.com/animenotifier/arn"
"github.com/fatih/color"
)
func main() {
defer arn.Node.Close()
for user := range arn.StreamUsers() {
obj := user.Notifications()
if obj == nil {
fmt.Println(user.Nick)
arn.NewUserNotifications(user.ID).Save()
}
}
color.Green("Finished.")
}