2.2 KiB
Mibew Mattermost plugin
Provides Mattermost notifications when a chat is initiated.
Installation
-
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.
Plugin's configurations
The plugin can be configured with values in "<Mibew root>
/configs/config.yml" file.
config.username
Type: String
Username of the Mattermost user.
config.channel
Type: String
Channel to post notification into.
config.mattermost_url
Type: String
Webhook URL from Setup Instructions in Mattermost.
config.custom_text
Type: String
Default: ''
Optional string to be appended after the default message.
Build from sources
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.