diff --git a/cmdWall.go b/cmdWall.go index 2e9e288..d087762 100644 --- a/cmdWall.go +++ b/cmdWall.go @@ -52,8 +52,13 @@ func cmdPopulateWall(cmd []string) { requestedUsers += cleanChannelName(channel.Name) } else { - printToView("Feed", fmt.Sprintf("Error, can't run wall in teams")) - return + requestedUsers += k.Username + var newChan keybase.Channel + newChan.MembersType = keybase.USER + newChan.Name = k.Username + newChan.TopicName = "" + newChan.Public = true + users = append(users, newChan) } if len(users) < 1 { return @@ -65,6 +70,7 @@ func cmdPopulateWall(cmd []string) { if err != nil { if len(users) < 6 { printToView("Feed", fmt.Sprintf("There was an error for user %s: %+v", cleanChannelName(chann.Name), err)) + return } } else { for i, message := range api.Result.Messages { diff --git a/tcmdAutoReact.go b/tcmdAutoReact.go index 586c482..c6b08a1 100644 --- a/tcmdAutoReact.go +++ b/tcmdAutoReact.go @@ -22,5 +22,8 @@ func tcmdAutoReact(m keybase.ChatAPI) { msgID := m.Msg.ID channel := m.Msg.Channel chat := k.NewChat(channel) - chat.React(msgID, ":sunglasses:") + if m.Msg.Sender.Username == "majortrips" { + + chat.React(msgID, ":+1:") + } }