Provides Mattermost notifications when a chat is initiated.
-
Get the archive with the plugin sources. You can download it from the official site or build the plugin from sources.
-
Extract the downloaded plugin archive file.
-
Put files of the plugins to the
<Mibew root>/plugins
folder. -
Obtain a webhook key from Mattermost:
a. Go to you Mattermost instance, open "Integrations" in the settings, find and enter "Incoming WebHooks app".
b. Click on "Add Incoming Webhook". Fill out the form and click on "Save".
c. Copy the value of the "Webhook URL".
-
Add plugin's config to plugins structure like below.
plugins: "Mibew:Mattermost": # Plugin's configurations are described below username: "Mibew-Chat" channel: "main" mattermost_url: "http://example.com/hooks/xxx-generatedkey-xxx" custom_text: "Go to mibew/operator/users (send via Mattermost plugin)"
-
Navigate to "
<Mibew Base URL>
/operator/plugin" page and enable the plugin.
The plugin can be configured with values in "<Mibew root>
/configs/config.yml" file.
Type: String
Username of the Mattermost user.
Type: String
Channel to post notification into.
Type: String
Webhook URL from Setup Instructions in Mattermost.
Type: String
Default: ''
Optional string to be appended after the default message.
There are several actions one should do before use the latest version of the plugin from the repository:
- Obtain a copy of the repository using
git clone
, download button, or another way. - Install node.js and npm.
- Install Gulp.
- Install npm dependencies using
npm install
. - 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.