Slack Receive

Component ID

2677166

Component name

Slack Receive

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

242

Component created

Component changed

Component body

Summary

This module allows Drupal to receive and execute commands sent from Slack via their Outgoing Webhooks integration. Developers can use this module as a launching point for things like executing Drush commands and printing the output into a Slack channel, or for creating their own Drupal-powered SlackBots.

Slack will send POST data to a menu callback in Drupal which this module enables at /slack_receive. If the post contains the correct Slack Token, Slack Receive will then execute any functions that are implemented via hook_slack_receive_api. Developers should take a few minutes and become familiar with the Slack API docs here.

Note: this module is a an API module and doesn't do anything on its own. Please enable the included slack_receive_example module to see working examples of functionality that are possible via Slack Receive.

Requirements

Installation

Install as usual, see https://www.drupal.org/documentation/install/modules-themes/modules-7 for further information.

Configuration

The slack admin form for storing your Slack API Token will be available here: /admin/config/services/slack_recieve.

Customization

Please see the bundled 'slack_receive_examples' for detailed sample implementations of Slack Receive.