diff --git a/patches/add-user-notifications/add-user-notifications.go b/patches/add-user-notifications/add-user-notifications.go new file mode 100644 index 00000000..93b08d14 --- /dev/null +++ b/patches/add-user-notifications/add-user-notifications.go @@ -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.") +}