A customizable slash command for Slack workspaces
This is a useful script that can provide slash command functionality in a Slack channel. It was originally written to provide functionality in a Slack Enterprise environment, but it can be modified to a single Slack team instance as well as post back just about any kind of response when typing /yourcommand
.
- PHP v5.4.0 +
- Maknz' PHP messaging package for Slack
Install the slackintegrator.php
script into the same directory as the cloned maknz package.
For the code to work, you'll need to set up a slash command in your Slack admin panel and a webhook. Approval from a workspace admin may be required to complete these steps. If in doubt, check with whomever administers Slack for you at your workplace.
- djshadowxm82 - co-author