fix: log /ai new errors instead of showing user Failed to reset conversation
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ func (p *Plugin) ExecuteCommand(_ *plugin.Context, args *model.CommandArgs) (*mo
|
||||
|
||||
case parts[0] == "new":
|
||||
if err := p.conversationStore.Reset(args.UserId, args.ChannelId); err != nil {
|
||||
return p.response("Failed to reset conversation."), nil
|
||||
p.API.LogError("Failed to reset conversation", "error", err.Error())
|
||||
}
|
||||
p.engagementEngine.Sleep(args.UserId, args.ChannelId)
|
||||
return p.response("Conversation reset. @matty to start again."), nil
|
||||
|
||||
Reference in New Issue
Block a user