Update
This commit is contained in:
parent
ba56ea0533
commit
2fb1614c26
6
main.go
6
main.go
|
@ -28,7 +28,7 @@ func main() {
|
||||||
|
|
||||||
webhook := os.Getenv("DISCORD_WEBHOOK_URL")
|
webhook := os.Getenv("DISCORD_WEBHOOK_URL")
|
||||||
|
|
||||||
discordwebhook.SendMessage(webhook, discordwebhook.Message{
|
err := discordwebhook.SendMessage(webhook, discordwebhook.Message{
|
||||||
Embeds: &[]discordwebhook.Embed{
|
Embeds: &[]discordwebhook.Embed{
|
||||||
{
|
{
|
||||||
Title: &i.Data.Link,
|
Title: &i.Data.Link,
|
||||||
|
@ -39,4 +39,8 @@ func main() {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if err != nil || err.Error() != "" {
|
||||||
|
fmt.Println(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue