Browse Source

string join does need spaces for human readability

master
David Haukeness 5 years ago
parent
commit
66f9dc6d68
No known key found for this signature in database
GPG Key ID: 54F2372DDB7F9462
  1. 2
      commands.go

2
commands.go

@ -24,7 +24,7 @@ func (b *bot) setupMeeting(convid chat1.ConvIDStr, sender string, words []string @@ -24,7 +24,7 @@ func (b *bot) setupMeeting(convid chat1.ConvIDStr, sender string, words []string
func (b *bot) sendFeedback(convid chat1.ConvIDStr, mesgID chat1.MessageID, sender string, words []string) {
b.debug("feedback recieved in %s", convid)
if b.config.FeedbackConvIDStr != "" {
feedback := strings.Join(words[2:], "")
feedback := strings.Join(words[2:], " ")
fcID := chat1.ConvIDStr(b.config.FeedbackConvIDStr)
if _, err := b.k.SendMessageByConvID(fcID, "Feedback from @%s:\n```%s```", sender, feedback); err != nil {
b.k.ReplyByConvID(convid, mesgID, "I'm sorry, I was unable to send your feedback because my benevolent overlords have not set a destination for feedback. :sad:")

Loading…
Cancel
Save