fixed wrong Printf

This commit is contained in:
an 2018-04-22 11:45:53 +02:00
parent f0cbc1785f
commit 2abfa3f5c3
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) {
for k, v := range data { for k, v := range data {
fmt.Printf("%s : %v\n", k, v) fmt.Printf("%s : %v\n", k, v)
if k == "text" { if k == "text" {
SayCh <- fmt.Printf("%s\n%v", *webhookChan, v) SayCh <- fmt.Sprintf("%s\n%v", *webhookChan, v)
} }
} }
} }