diff --git a/draftbot/draftbot.go b/draftbot/draftbot.go index 19dca0d..2fbae07 100644 --- a/draftbot/draftbot.go +++ b/draftbot/draftbot.go @@ -104,6 +104,13 @@ func (d *draftBot) handleMessage(roomid string, msg room.Message) { // Add player to the list session.Players[msg.From] = nil + d.sendMessage(roomid, room.Message{ + Channel: "draft", + Type: "player-joined-session", + Data: msg.From, + Message: fmt.Sprintf("%s joined the draft session (%d players, %d missing)", msg.From, len(session.Players), len(session.Pod.Players)-len(session.Players)), + }) + // Player wants something else default: // Tell them can either join or GTFO