From 66468545ba538ac4d440f33e12abe40f7b3221ef Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 20 Nov 2022 18:25:06 +1300 Subject: [PATCH] Updates --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index db07894..6786a9d 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ func init() { log.Fatal("PORT empty or invalid") } - IP2LOCATION_FILE = os.Getenv("IP2LOCATION_API_KEY") + IP2LOCATION_FILE = os.Getenv("IP2LOCATION_FILE") } func main() { @@ -71,7 +71,7 @@ func handler(w http.ResponseWriter, r *http.Request) { } } else if i.Event == "account.created" { country := ipLookup(i.Object.IP) - err = sendWebhook(fmt.Sprintf("*New Signup* %s has signed up.%s", i.Object.Username, country)) + err = sendWebhook(fmt.Sprintf("*New Signup* %s (%s) has signed up.%s", i.Object.Username, i.Object.Email, country)) if err != nil { log.Println(err.Error()) return