/fnExchange-slack

Integrating fnExchange with slack. You can now execute a _trigger from DNIF to write to a slack bot / channel.

Primary LanguagePythonApache License 2.0Apache-2.0

fnExchange Slack Plugin

This is a plugin for the fnExchange API router for interacting with Slack.

This plugin currently only provides an Action for posting messages to a Slack channel using inbound webhooks. This only requires the inbound webhook URL token.

You can get the Slack webhook URL here

Installation

Simply install this as

$ pip install fnexchange-slack

Configuration

To use this plugin with fnExchange, add the appropriate configuration to the fnexchange.yml configuration file under plugins_enabled. A sample configuration is provided below. Of course, note that you can use any alias instead of "slacker".

The plugin requires the url configuration.

...
  plugins_enabled:
    ...
    slacker:
      class_name: 'fnexchange_slack.SlackPlugin'
      config:
        url: 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'
    ...
...