Discord action

This action allows you to send custom messages to a Discord channel using a bot when your monitor suites finish their execution.

To use this action you need to provide the Discord webhook URL in your settings.py file as follows:

# settings.py
SPIDERMON_DISCORD_WEBHOOK_URL = "<DISCORD_WEBHOOK_URL>"

A notification will look like the following:

Discord Notification

Follow these steps to configure your Discord bot.

The following settings are the minimum needed to make this action work:

SPIDERMON_DISCORD_WEBHOOK_URL

Webhook URL of your bot.

Warning

Be careful when using bot webhooks URL in Spidermon. Do not publish them in public code repositories.

Other settings available:

_SPIDERMON_DISCORD_FAKE

Default: False

If set True, the Discord message content will be in the logs but nothing will be sent.

SPIDERMON_DISCORD_MESSAGE

The message to be sent, it supports Jinja2 template formatting.

SPIDERMON_DISCORD_MESSAGE_TEMPLATE

Path to a Jinja2 template file to format messages sent by the Discord Action.