Skip to content

Commit

Permalink
Fix to react own messages
Browse files Browse the repository at this point in the history
  • Loading branch information
evalphobia committed Aug 20, 2018
1 parent bda687d commit cd20340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ func (b *SlackBot) runRTM() int {

// ユーザーからの投稿を内容に応じて処理する.
func (b *SlackBot) processMessage(ev *slack.MessageEvent) {
if ev.Text == "" {
switch {
case ev.Text == "",
ev.Hidden,
b.botID == ev.Msg.User:
return
}

Expand Down

0 comments on commit cd20340

Please sign in to comment.