Skip to content

Discord Plugin

Jason Spafford edited this page Jul 17, 2018 · 6 revisions

This plugin is used by other plugins to send messages to discord. This is where you'll configure all of your webhooks for discord. Add a new entry here as seen in the Example Config section below, where the name is the name of the plugin, and the value is the webhook URL you generated in discord that you want that plugin to use.

Configuration

Name Example Description
enabled true Set to true or false to prevent this plugin from running
stale_message_seconds 2 Don't retry failed message on the webhook that are older than this time in seconds.
force_test_discord false If true, send a test message to every hook to test if it works.
ServerRestarter https://discordapp... A webhook URL for the ServerRestarter plugin to send messages on.
DownRecovery https://discordapp... A webhook URL for the DownRecovery plugin to send messages on.
ServerUpdater https://discordapp... A webhook URL for the ServerUpdater plugin to send messages on.

Example Config

[Discord]
enabled = true
ServerRestarter = https://discordapp.com/api/webhooks/...
DownRecovery = https://discordapp.com/api/webhooks/...
ServerUpdater = https://discordapp.com/api/webhooks/...
stale_message_seconds = 2