Coder Social home page Coder Social logo

ravenx_slack's Introduction

ravenx_slack

Current Version Build Status

Ravenx strategy to send Slack notifications

Installation

The package can be installed as simply as adding ravenx and ravenx_slack to your list of dependencies in mix.exs:

  def deps do
    [
      {:ravenx, "~> 2.0"},
      {:ravenx_slack, "~> 0.1"}
    ]
  end

Configuration

To enable this strategy, just specify it in your ravenx configuration:

config :ravenx,
  strategies: [
    slack: Ravenx.Strategy.Slack
  ]

Available configuration

The module can be configured as mentioned on the Ravenx's README, been able to configure the following variables:

  • url: the URL of the webhook you have isntalled in your Slack.
  • channel: channel to post the message. If not specified, will use default's one specified in the webhook configuration.
  • username: User name to show in the notification. If not specified, will use default's one specified in the webhook configuration.
  • icon_emoji: Emoji to use in the notification as avatar. If not specified, will use default's one specified in the webhook configuration.

Payload

Any field specified in the official documentation can be send in a map as the payload.

Contribute

All contributions are welcome, and we really hope this repo will serve for beginners as well for more advanced developers.

If you have any doubt, feel free to ask, but always respecting our Code of Conduct.

To contribute, create a fork of the repository, make your changes and create a PR. And remember, talking on PRs/issues is a must!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.