Add tests

This commit is contained in:
mudler
2025-03-25 17:58:59 +01:00
parent ca3420c791
commit e26b55a6a8
5 changed files with 142 additions and 5 deletions

View File

@@ -306,6 +306,8 @@ func (t *Slack) handleChannelMessage(
},
)
xlog.Debug("After adding message to conversation tracker", "conversation", t.conversationTracker.GetConversation(t.channelID))
//res.Response = githubmarkdownconvertergo.Slack(res.Response)
_, _, err = api.PostMessage(ev.Channel,
@@ -574,6 +576,7 @@ func (t *Slack) handleMention(
// Format the final response
//finalResponse := githubmarkdownconvertergo.Slack(res.Response)
finalResponse := fmt.Sprintf("@%s %s", user.Name, res.Response)
xlog.Debug("Send final response to slack", "response", finalResponse)
// Update the placeholder message with the final result
t.placeholderMutex.RLock()