Skip to content

mvalitov/slack_notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlackNotifier

A simple wrapper for posting to slack channels

Installation

Add slack_notifier to your list of dependencies in mix.exs:

def deps do
  [{:slack_notifier, "~> 0.1.0"}]
end

Add to your config webhook url:

config :slack_notifier, webhook: "https://hooks.slack.com/services/xxx"

Documentation https://hexdocs.pm/slack_notifier.

Usage

Send message:

SlackNotifier.ping("Test slack notifier without icon")
:ok

Send message with icon emoji:

SlackNotifier.ping("Test slack notifier", icon_emoji: ":sos:")
:ok

About

A simple wrapper for posting to slack channels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages