2017-02-24 20:02:04 +03:00
[![Stories in Ready ](https://badge.waffle.io/dmcdaniel12/mibew_slack.png?label=ready&title=Ready )](https://waffle.io/dmcdaniel12/mibew_slack)
2017-01-27 05:43:40 +03:00
# Mibew Slack plugin
Provides Slack notifications when initiate a chat
## Installation
2017-03-21 15:38:40 +03:00
1. Get the archive with the plugin sources. You can download it from the [official site ](https://mibew.org/plugins#mibew-slack ) or build the plugin from sources.
2017-01-27 05:43:40 +03:00
2. Untar/unzip the plugin's archive.
3. Put files of the plugins to the `<Mibew root>/plugins` folder.
2017-02-08 14:07:57 +03:00
4. Obtain a webhook key from Slack:
2017-01-27 05:43:40 +03:00
2017-02-08 14:07:57 +03:00
a. Go to Slack.com , open your app directory, find and enter Incoming WebHooks app, click on Add Configuration
2017-01-27 05:43:40 +03:00
2017-02-08 14:07:57 +03:00
b. Click on App Configuration. Choose the Channel it should post to, click on Add Incoming Webhook Integration
2017-01-27 05:43:40 +03:00
2017-02-08 14:07:57 +03:00
c. Copy the Webhook URL
5. Add plugins config to plugins structure like below.
2017-01-27 05:43:40 +03:00
```yaml
plugins:
"Mibew:Slack": # Plugin's configurations are described below
2017-02-25 15:09:08 +03:00
username: "Username you will post as"
channel: "Channel to post in"
slack_url: "Webhook URL from Setup Instructions in Slack"
2017-01-27 05:43:40 +03:00
```
## Plugin's configurations
The plugin can be configured with values in "`< Mibew root > `/configs/config.yml" file.
## Build from sources
There are several actions one should do before use the latest version of the plugin from the repository:
1. Obtain a copy of the repository using `git clone` , download button, or another way.
2. Install [node.js ](http://nodejs.org/ ) and [npm ](https://www.npmjs.org/ ).
3. Install [Gulp ](http://gulpjs.com/ ).
4. Install npm dependencies using `npm install` .
5. Run Gulp to build the sources using `gulp default` .
Finally `.tar.gz` and `.zip` archives of the ready-to-use Plugin will be available in `release` directory.
## License
[Apache License 2.0 ](http://www.apache.org/licenses/LICENSE-2.0.html )