Add four generic webhook notifiers

This commit is contained in:
Davidson Francis 2024-07-28 18:14:17 -03:00
parent 2fb5a9fa4e
commit 32b9d8b772

View File

@ -360,5 +360,31 @@ struct notifier notifiers[] = {
.send_notification = send_discord_notification, .send_notification = send_discord_notification,
.data = &(struct webhook_data) .data = &(struct webhook_data)
{.env_var = "DISCORD_WEBHOOK_URL"}, {.env_var = "DISCORD_WEBHOOK_URL"},
} },
/* Generic webhook events: 1--4 */
{
.setup = setup_generic_webhook,
.send_notification = send_generic_webhook_notification,
.data = &(struct webhook_data)
{.env_var = "GENERIC1_WEBHOOK_URL"},
},
{
.setup = setup_generic_webhook,
.send_notification = send_generic_webhook_notification,
.data = &(struct webhook_data)
{.env_var = "GENERIC2_WEBHOOK_URL"},
},
{
.setup = setup_generic_webhook,
.send_notification = send_generic_webhook_notification,
.data = &(struct webhook_data)
{.env_var = "GENERIC3_WEBHOOK_URL"},
},
{
.setup = setup_generic_webhook,
.send_notification = send_generic_webhook_notification,
.data = &(struct webhook_data)
{.env_var = "GENERIC4_WEBHOOK_URL"},
},
}; };