Browse Source

Added PROXY DOMAIN

pull/1/head v1.1.0
Medzik 1 year ago
parent
commit
cd6d40b8e4
  1. 11
      main.go

11
main.go

@ -28,13 +28,20 @@ func main() {
webhook := os.Getenv("DISCORD_WEBHOOK_URL")
domain := os.Getenv("PROXY_DOMAIN")
if domain == "" {
domain = "https://i.imgur.com"
}
url := domain + "/" + i.Data.IDExt
err := discordwebhook.SendMessage(webhook, discordwebhook.Message{
Embeds: &[]discordwebhook.Embed{
{
Title: &i.Data.Link,
Title: &url,
Color: &color,
Image: &discordwebhook.Image{
Url: &i.Data.Link,
Url: &url,
},
},
},

Loading…
Cancel
Save