Skip to content

Commit

Permalink
fix vulnbot
Browse files Browse the repository at this point in the history
  • Loading branch information
factoidforrest committed Mar 22, 2023
1 parent 6ef6fdd commit 3829265
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lunatrace/bsl/ingest-worker/pkg/vulnbot/vulnbot.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3829265

Please sign in to comment.