diff --git a/modules/webhook.go b/modules/webhook.go index 2323267..f359d96 100644 --- a/modules/webhook.go +++ b/modules/webhook.go @@ -27,19 +27,19 @@ func webhookRun() { xlog.Fatal("%v", http.ListenAndServe(":"+*webhookPort, nil)) } -//func webhookHandleMessage(m *Message) { -// tok := strings.Split(m.Text, " ") -// if len(tok) < 1 { -// return -// } -// switch tok[0] { -// case "!webhook-add": -// if len(tok) > 1 { -// http.HandleFunc("/webhook/"+tok[1], webhookHandleHTTP) -// } -// default: -// } -//} +func webhookHandleMessage(m *Message) { + // tok := strings.Split(m.Text, " ") + // if len(tok) < 1 { + // return + // } + // switch tok[0] { + // case "!webhook-add": + // if len(tok) > 1 { + // http.HandleFunc("/webhook/"+tok[1], webhookHandleHTTP) + // } + // default: + // } +} func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) { data := make(map[string]interface{})