A notifier to send messages to a discord webhook with a primitive retry mechanism.
Currently not published to hex. Add dependency from this repository instead.
def deps do
[
{:discord_notifier, "~> 1.0", git: "https://github.com/tuacker/discord-notifier.git"}
]
end
- In the Discord client, go to the server and open the settings of a
text channel
. - Go to Webhooks and create a new hook
- Copy the entire
webhook url
into the config as shown below
config :discord_notifier,
webhook: "https://discordapp.com/api/webhooks/{your_channel_id}/{your_channel_token}"
Set testing
to true
and the notifier will output messages to the Logger
.
config :discord_notifier, testing: true