Skip to content

Commit 3829265

Browse files
fix vulnbot
1 parent 6ef6fdd commit 3829265

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lunatrace/bsl/ingest-worker/pkg/vulnbot/vulnbot.go

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// Copyright by LunaSec (owned by Refinery Labs, Inc)
2+
//
3+
// Licensed under the Business Source License v1.1
4+
// (the "License"); you may not use this file except in compliance with the
5+
// License. You may obtain a copy of the License at
6+
//
7+
// https://github.com/lunasec-io/lunasec/blob/master/licenses/BSL-LunaTrace.txt
8+
//
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
//
112
package vulnbot
213

314
import (
@@ -79,7 +90,8 @@ func (v *vulnbot) messageHandler(ctx context.Context, info discordfx.MessageInfo
7990
log.Error().Err(err).Msg("error processing message")
8091
return
8192
}
82-
_, err = s.ChannelMessageSend(m.ChannelID, resp.Response)
93+
// 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
94+
_, err = s.ChannelMessageSend(m.ChannelID, resp.FinalAnswer)
8395
if err != nil {
8496
log.Error().Err(err).Msg("error sending message")
8597
return

0 commit comments

Comments
 (0)