From 66c4eecfdabde6112e95d0329749593375fa5f32 Mon Sep 17 00:00:00 2001 From: an Date: Sun, 22 Apr 2018 15:42:58 +0200 Subject: [PATCH] webhooks should work now --- modules/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/webhook.go b/modules/webhook.go index 2be9abf..acc4117 100644 --- a/modules/webhook.go +++ b/modules/webhook.go @@ -25,7 +25,7 @@ func init() { } func webhookRun() { - scanner := bufio.NewScanner(*webhook_token) + scanner := bufio.NewScanner(*webhookToken) for scanner.Scan() { tok := strings.Split(scanner.Text(), " ") http.HandleFunc("/webhook/"+tok[0], webhookHandleHTTP)