You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kegan Myers 777643591c Require latest router 5 years ago
.gitignore initial commit 5 years ago
README.md Allow arguments to command handlers 5 years ago
app.js Allow arguments to command handlers 5 years ago
config.json.example Allow arguments to command handlers 5 years ago
package.json Require latest router 5 years ago

README.md

slack-command-server

Slack command server is a simple way to build a server that responds to slack slash commands.

Getting Started

  1. Clone this repository
  2. Configure according to the Configuration section
  3. Run node app.js

Configuration

Configuring the server is simple, you can use any plugin compatible with slack-command-router, custom or otherwise.

You must define what port for the app to listen on by defining port: 80

To use pre-written plugins write your configuration thusly:

{
    "plugins": {
        "slack-roll-command": {}
    }
}

Or if you have plugins of your own, you can do this:

{
    "local-plugins": {
        "directory/to/plugin.js": {}
    }
}

Notes

Any plugins specified in your configuration will be installed through npm upon starting your server, and any local-plugins will will be loaded relative to the directory in which app.js resides.