Permalink
Browse files

Fix display of who's turn it is.

  • Loading branch information...
cjsaylor committed Aug 13, 2018
1 parent e24617d commit e3ec7a14faae2c5caea04fcf76728be0925b728e
Showing with 1 addition and 1 deletion.
  1. +1 −1 integration/events.go
@@ -169,7 +169,7 @@ func (s SlackHandler) handleMoveCommand(gameID string, move string, ev *slackeve
// @todo persist record to some incremental storage (redis, etc)
}
} else {
s.SlackClient.PostMessage(ev.Channel, fmt.Sprintf("<@%v>'s (%v) turn.", player.ID, gm.Turn()), slack.PostMessageParameters{
s.SlackClient.PostMessage(ev.Channel, fmt.Sprintf("<@%v>'s (%v) turn.", gm.TurnPlayer().ID, gm.Turn()), slack.PostMessageParameters{
ThreadTimestamp: ev.TimeStamp,
Attachments: []slack.Attachment{boardAttachment},
})

0 comments on commit e3ec7a1

Please sign in to comment.