Added christmas notification
This commit is contained in:
parent
add6e46b4c
commit
4f04a6c494
22
patches/christmas-notification/christmas-notification.go
Normal file
22
patches/christmas-notification/christmas-notification.go
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/animenotifier/arn"
|
||||||
|
"github.com/fatih/color"
|
||||||
|
)
|
||||||
|
|
||||||
|
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",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user