File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ func (bot SlackBot) updateStatus(knockEvent KnockEvent) {
9494
9595 text := ""
9696 if knockEvent .Event == "ACKNOWLEDGE" {
97- text = "This request was answered 🟢!"
97+ text = fmt . Sprintf ( "This request was answered 🟢!\n User: %s \n Location: %s" , knockEvent . Name , knockEvent . Location )
9898 } else if knockEvent .Event == "NEVERMIND" {
99- text = "This request was cancelled 🟡!"
99+ text = fmt . Sprintf ( "This request was cancelled 🟡!\n User: %s \n Location: %s" , knockEvent . Name , knockEvent . Location )
100100 } else if knockEvent .Event == "TIMEOUT" {
101- text = "This request timed out 🔴!"
101+ text = fmt . Sprintf ( "This request timed out 🔴!\n User: %s \n Location: %s" , knockEvent . Name , knockEvent . Location )
102102 }
103103
104104 _ , channelID , timestamp , err := bot .api .UpdateMessage (
You can’t perform that action at this time.
0 commit comments