This commit is contained in:
parent
2117fcc783
commit
bfc763c0c0
@ -115,13 +115,18 @@ func action(context context.Context, c *cli.Command) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Log("Finished processing message. sending to enabled targets.")
|
||||||
|
|
||||||
if slices.Contains(targets, constants.Discord) {
|
if slices.Contains(targets, constants.Discord) {
|
||||||
|
logger.Log("Discord targets found.")
|
||||||
discord.Send(ar, color, mention, priority)
|
discord.Send(ar, color, mention, priority)
|
||||||
}
|
}
|
||||||
if slices.Contains(targets, constants.Ntfy) {
|
if slices.Contains(targets, constants.Ntfy) {
|
||||||
|
logger.Log("Ntfy targets found.")
|
||||||
ntfy.Send(ar, priority)
|
ntfy.Send(ar, priority)
|
||||||
}
|
}
|
||||||
if slices.Contains(targets, constants.Slack) {
|
if slices.Contains(targets, constants.Slack) {
|
||||||
|
logger.Log("Slack targets found.")
|
||||||
slack.Send(ar, priority)
|
slack.Send(ar, priority)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user