egg-slack-notifier
v0.2.0
Published
slack notifier plugin for egg
Downloads
10
Maintainers
Readme
egg-slack-notifier
Slack notifier plugin for egg
Install
$ npm i egg-slack-notifier --save
Usage
// {app_root}/config/plugin.js
exports.slackNotifier = {
enable: true,
package: 'egg-slack-notifier',
};
Configuration
// {app_root}/config/config.default.js
exports.slackNotifier = {
client: {
webhookURL: 'WEBHOOK_URI',
options: {
channel: '#general',
username: 'webhookbot',
},
},
};
Example
app.slackNotifier.send({ text: 'This is a line of text.\nAnd this is another one.' })
see punwave-slack-notifier for more detail.
Questions & Suggestions
Please open an issue here.