File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,19 +86,19 @@ func (bot SlackBot) sendKnock(username string, location string) (messagets strin
8686
8787}
8888
89- func (bot SlackBot ) updateStatus (knockEvent KnockEvent , username string , location string ) {
89+ func (bot SlackBot ) updateStatus (knockEvent KnockEvent ) {
9090 // Allows messages to be updated with the status of the request
9191 if ! bot .isValidBot {
9292 return
9393 }
9494
9595 text := ""
9696 if knockEvent .Event == "ACKNOWLEDGE" {
97- text = fmt . Sprintf ( "This request was answered 🟢!\n User: %s \n Location: %s" , username , location )
97+ text = "This request was answered 🟢!"
9898 } else if knockEvent .Event == "NEVERMIND" {
99- text = fmt . Sprintf ( "This request was cancelled 🟡!\n User: %s \n Location: %s" , username , location )
99+ text = "This request was cancelled 🟡!"
100100 } else if knockEvent .Event == "TIMEOUT" {
101- text = fmt . Sprintf ( "This request timed out 🔴!\n User: %s \n Location: %s" , username , location )
101+ text = "This request timed out 🔴!"
102102 }
103103
104104 _ , channelID , timestamp , err := bot .api .UpdateMessage (
You can’t perform that action at this time.
0 commit comments