fix
This commit is contained in:
parent
3c6553f37e
commit
4601c0acd9
@ -16,7 +16,7 @@ func SendDiscord(params types.Params) {
|
||||
|
||||
var embedDescription string
|
||||
|
||||
if slices.Contains(strings.Split(params.FullMessage, ","), "discord") {
|
||||
if slices.Contains(strings.Split(params.FullAlert, ","), "discord") {
|
||||
fullAlert, _ := json.MarshalIndent(params.WazuhMessage, "", " ")
|
||||
fullAlertString := strings.ReplaceAll(string(fullAlert), `"`, "")
|
||||
fullAlertString = strings.ReplaceAll(fullAlertString, "{", "")
|
||||
|
||||
@ -7,7 +7,7 @@ type Params struct {
|
||||
Tags string
|
||||
Click string `yaml:"click,omitempty"`
|
||||
Targets string `yaml:"targets,omitempty"`
|
||||
FullMessage string `yaml:"full_message,omitempty"`
|
||||
FullAlert string `yaml:"full_message,omitempty"`
|
||||
ExcludedRules string `yaml:"excluded_rules,omitempty"`
|
||||
ExcludedAgents string `yaml:"excluded_agents,omitempty"`
|
||||
Color int
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user