Skip to content

A notifier to send messages to a discord webhook with retry mechanism for Elixir.

Notifications You must be signed in to change notification settings

tuacker/discord-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Notifier

A notifier to send messages to a discord webhook with a primitive retry mechanism.

Installation

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

Config

Production

  1. In the Discord client, go to the server and open the settings of a text channel.
  2. Go to Webhooks and create a new hook
  3. 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}"

Testing

Set testing to true and the notifier will output messages to the Logger.

config :discord_notifier, testing: true

About

A notifier to send messages to a discord webhook with retry mechanism for Elixir.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages