From 69e068fbc359365365790d1dae8eb24aeabd18ba Mon Sep 17 00:00:00 2001 From: an Date: Sun, 22 Apr 2018 16:17:32 +0200 Subject: [PATCH] webhook.go: highlight username --- modules/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/webhook.go b/modules/webhook.go index 698e19a..2ea258a 100644 --- a/modules/webhook.go +++ b/modules/webhook.go @@ -49,7 +49,7 @@ func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusInternalServerError) return } - SayCh <- fmt.Sprintf("%s\n%v", data["channel"], data["text"]) + SayCh <- fmt.Sprintf("*%s*: %s\n%v", data["username"], data["channel"], data["text"]) for k, v := range data { xlog.Debug("%s : %v\n", k, v) }