Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 630 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 630 Bytes

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