https://github.com/mvalitov/slack_notifier
A simple wrapper for posting to slack channels
https://github.com/mvalitov/slack_notifier
Last synced: 3 months ago
JSON representation
A simple wrapper for posting to slack channels
- Host: GitHub
- URL: https://github.com/mvalitov/slack_notifier
- Owner: mvalitov
- License: mit
- Created: 2017-11-24T15:09:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T06:56:30.000Z (almost 7 years ago)
- Last Synced: 2025-01-17T14:07:41.000Z (5 months ago)
- Language: Elixir
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SlackNotifier
A simple wrapper for posting to slack channels
## Installation
Add `slack_notifier` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:slack_notifier, "~> 0.1.0"}]
end
```Add to your config webhook url:
```elixir
config :slack_notifier, webhook: "https://hooks.slack.com/services/xxx"
```Documentation [https://hexdocs.pm/slack_notifier](https://hexdocs.pm/slack_notifier).
## Usage
Send message:
```elixir
SlackNotifier.ping("Test slack notifier without icon")
:ok
```Send message with icon emoji:
```elixir
SlackNotifier.ping("Test slack notifier", icon_emoji: ":sos:")
:ok
```