24 lines
325 B
Go
24 lines
325 B
Go
|
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.")
|
||
|
}
|