2017-11-20 14:33:03 +00:00
|
|
|
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{
|
2017-11-20 14:33:03 +00:00
|
|
|
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",
|
2017-11-20 14:33:03 +00:00
|
|
|
Link: "https://notify.moe/anime/11110",
|
|
|
|
}
|
|
|
|
|
|
|
|
err := mailer.SendEmailNotification("e.urbach@gmail.com", notification)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
fmt.Println(err)
|
|
|
|
}
|
|
|
|
}
|