testing webhooks

This commit is contained in:
an 2018-04-22 13:54:39 +02:00
parent f603c503f6
commit 8e9e8e162c
1 changed files with 13 additions and 13 deletions

View File

@ -27,7 +27,7 @@ func webhookRun() {
xlog.Fatal("%v", http.ListenAndServe(":"+*webhookPort, nil)) xlog.Fatal("%v", http.ListenAndServe(":"+*webhookPort, nil))
} }
//func webhookHandleMessage(m *Message) { func webhookHandleMessage(m *Message) {
// tok := strings.Split(m.Text, " ") // tok := strings.Split(m.Text, " ")
// if len(tok) < 1 { // if len(tok) < 1 {
// return // return
@ -39,7 +39,7 @@ func webhookRun() {
// } // }
// default: // default:
// } // }
//} }
func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) { func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) {
data := make(map[string]interface{}) data := make(map[string]interface{})