hotfix
This commit is contained in:
parent
5e5d300392
commit
69ebc0fca3
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user