webhook.go: highlight username
This commit is contained in:
		
							parent
							
								
									919890e412
								
							
						
					
					
						commit
						69e068fbc3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -49,7 +49,7 @@ func webhookHandleHTTP(w http.ResponseWriter, r *http.Request) { | ||||||
| 		http.Error(w, err.Error(), http.StatusInternalServerError) | 		http.Error(w, err.Error(), http.StatusInternalServerError) | ||||||
| 		return | 		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 { | 	for k, v := range data { | ||||||
| 		xlog.Debug("%s : %v\n", k, v) | 		xlog.Debug("%s : %v\n", k, v) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue