mirror of https://github.com/velour/catbase.git
parent
1ca364ca92
commit
cc13aa2928
|
@ -298,12 +298,10 @@ func (s *SlackApp) sendMessage(channel, message string, meMessage bool, args ...
|
||||||
|
|
||||||
func (s *SlackApp) replyToMessageIdentifier(channel, message, identifier string) (string, error) {
|
func (s *SlackApp) replyToMessageIdentifier(channel, message, identifier string) (string, error) {
|
||||||
nick := s.config.Get("Nick", "bot")
|
nick := s.config.Get("Nick", "bot")
|
||||||
icon := s.config.Get("IconURL", "https://placekitten.com/128/128")
|
|
||||||
|
|
||||||
resp, err := http.PostForm("https://slack.com/api/chat.postMessage",
|
resp, err := http.PostForm("https://slack.com/api/chat.postMessage",
|
||||||
url.Values{"token": {s.botToken},
|
url.Values{"token": {s.botToken},
|
||||||
"username": {nick},
|
"username": {nick},
|
||||||
"icon_url": {icon},
|
|
||||||
"channel": {channel},
|
"channel": {channel},
|
||||||
"text": {message},
|
"text": {message},
|
||||||
"thread_ts": {identifier},
|
"thread_ts": {identifier},
|
||||||
|
|
Loading…
Reference in New Issue