slack-command-server/README.md

28 lines
809 B
Markdown
Raw Normal View History

2014-08-09 06:21:11 +00:00
slack-command-server
====================
Slack command server is a simple way to build a server that responds to slack slash commands.
Configuration
=============
Configuring the server is simple, you can use any plugin compatible with [slack-command-router](https://github.com/terribly-lazy/slack-command-router), custom or otherwise.
To use pre-written plugins write your configuration thusly:
```json
{
"plugins": [
"slack-roll-command"
]
}
```
Or if you have plugins of your own, you can do this:
```json
{
"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.