diff --git a/lunatrace/bsl/ingest-worker/pkg/vulnbot/vulnbot.go b/lunatrace/bsl/ingest-worker/pkg/vulnbot/vulnbot.go index dd384207d..64c080990 100644 --- a/lunatrace/bsl/ingest-worker/pkg/vulnbot/vulnbot.go +++ b/lunatrace/bsl/ingest-worker/pkg/vulnbot/vulnbot.go @@ -1,3 +1,14 @@ +// Copyright by LunaSec (owned by Refinery Labs, Inc) +// +// Licensed under the Business Source License v1.1 +// (the "License"); you may not use this file except in compliance with the +// License. You may obtain a copy of the License at +// +// https://github.com/lunasec-io/lunasec/blob/master/licenses/BSL-LunaTrace.txt +// +// See the License for the specific language governing permissions and +// limitations under the License. +// package vulnbot import ( @@ -79,7 +90,8 @@ func (v *vulnbot) messageHandler(ctx context.Context, info discordfx.MessageInfo log.Error().Err(err).Msg("error processing message") return } - _, err = s.ChannelMessageSend(m.ChannelID, resp.Response) + // TODO: make this also show the intermediate steps in a collapsed box in discord (resp.IntermediateSteps). Bonus points if we can figure out how to preserve coloring + _, err = s.ChannelMessageSend(m.ChannelID, resp.FinalAnswer) if err != nil { log.Error().Err(err).Msg("error sending message") return