Skip to content

Cobenian/slacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slacker

Slacker

Slacker is an OTP application for sending messages to slack.

Installation

If available in Hex, the package can be installed as:

  1. Add slacker to your list of dependencies in mix.exs:

    def deps do [{:slacker, "~> 0.0.1"}] end

  2. Ensure slacker is started before your application:

    def application do [applications: [:slacker]] end

  3. Configure the slack connection in config/config.exs

    config :slacker, :slack, enabled: true, url: "https://slack.com/api", url_action: "/chat.postMessage", channel: "devops", botname: "ops"

  4. Configure the slack API key in config/<env>.exs

    config :slacker, :slack, token: ""

Usage

Slacker.Slack.send_message("<message goes here>")

The message must be a string so if there is any doubt that it is not a string do the following:

Slacker.Slack.send_message("#{inspect <value-to-send>}")

About

Send Messages To Slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages