23 lines
549 B
Go
Raw Normal View History

2018-12-24 07:25:12 +00:00
package main
import (
2019-04-23 05:45:17 +00:00
"github.com/akyoto/color"
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
2018-12-24 07:25:12 +00:00
)
func main() {
color.Yellow("Sending notifications")
defer color.Green("Finished")
defer arn.Node.Close()
for user := range arn.StreamUsers() {
user.SendNotification(&arn.PushNotification{
Title: "You have received a gift!",
Message: "Akyoto gifted you the item \"PRO Account - 1 month\".",
Icon: "https://media.notify.moe/images/avatars/large/4J6qpK1ve.png?1545634334",
Link: "https://notify.moe/thread/Sw0WDbsig",
})
}
}