24 lines
474 B
Go
Raw Normal View History

package main
import (
"fmt"
"github.com/animenotifier/arn"
"github.com/animenotifier/arn/mailer"
)
func main() {
2018-03-02 16:19:33 +00:00
notification := &arn.PushNotification{
Title: "Boku dake ga Inai Machi",
Message: "Episode 16 has been released!",
2018-03-02 16:19:33 +00:00
Icon: "https://media.notify.moe/images/anime/large/11110.webp",
Link: "https://notify.moe/anime/11110",
}
err := mailer.SendEmailNotification("e.urbach@gmail.com", notification)
if err != nil {
fmt.Println(err)
}
}