Merge pull request #200 from velour/fix_icon

slackApp: remove icon_url from message replies
This commit is contained in:
Chris Sexton 2019-09-25 18:47:20 -04:00 committed by GitHub
commit bb7f3b790d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -298,12 +298,10 @@ func (s *SlackApp) sendMessage(channel, message string, meMessage bool, args ...
func (s *SlackApp) replyToMessageIdentifier(channel, message, identifier string) (string, error) {
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",
url.Values{"token": {s.botToken},
"username": {nick},
"icon_url": {icon},
"channel": {channel},
"text": {message},
"thread_ts": {identifier},