This commit is contained in:
darius 2024-05-09 19:03:34 +02:00
parent 5e5d300392
commit 69ebc0fca3
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ func SendDiscord(params types.Params) {
return return
} }
_, err = http.Post(os.Getenv("DISCORD_WEBHOOK"), "application/json", payload) _, err = http.Post(os.Getenv("DISCORD_URL"), "application/json", payload)
if err != nil { if err != nil {
log.Fatalf("An Error Occured %v", err) log.Fatalf("An Error Occured %v", err)
} }

View File

@ -28,7 +28,7 @@ func InitNotify() types.Params {
err := godotenv.Load(path.Join(BasePath, "../../etc/.env")) err := godotenv.Load(path.Join(BasePath, "../../etc/.env"))
if err != nil { if err != nil {
log.Log("env failed to load") log.Log("env failed to load")
godotenv.Load(path.Join(BasePath, "/.env")) godotenv.Load(path.Join(BasePath, ".env"))
} else { } else {
log.Log("env loaded") log.Log("env loaded")
} }