0.0.0 • Published 9 years ago
xo-server-transport-slack v0.0.0
xo-server-transport-slack 
xo-server plugin to send messages to Slack/Mattermost
Install
Installation of the npm package:
> npm install --global xo-server-transport-slackUsage
Like all other xo-server plugins, it can be configured directly via the web iterface, see the plugin documentation. You can also test the configuration plugin if it works.
Slack
Generate the Webhook
- Log in your Slack team account
Click on the Main menu at the top and choose Apps & Integrations

Search Incoming WebHooks

Click on Add Configuration

Choose the default channel and click on Add Incoming WebHooks integration

Modify the default settings and click on Save Settings

Testing the plugin
Slack


Mattermost


Development
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build### Xo#sendSlackMessage({ message })
This xo method is called to send the message passed in parameter to Slack or Mattermost.
Contributions
Contributions are very welcomed, either on the documentation or on the code.
You may:
- report any issue you've encountered;
- fork and create a pull request.
License
AGPL3 © Vates SAS
0.0.0
9 years ago