This commit is contained in:
Medzik 2021-07-17 22:14:40 +00:00
parent ba56ea0533
commit 2fb1614c26
1 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func main() {
webhook := os.Getenv("DISCORD_WEBHOOK_URL")
discordwebhook.SendMessage(webhook, discordwebhook.Message{
err := discordwebhook.SendMessage(webhook, discordwebhook.Message{
Embeds: &[]discordwebhook.Embed{
{
Title: &i.Data.Link,
@ -39,4 +39,8 @@ func main() {
},
},
})
if err != nil || err.Error() != "" {
fmt.Println(err)
}
}