blocktank-util-slack-client
Client to interact with the blocktank-util-slack service.
Usage
Install
npm i @synonymdev/blocktank-util-slack-client
Send message
import { SlackClient } from '@synonymdev/blocktank-util-slack-client';
const client = new SlackClient('myConfiguredChannelName')
await client.info('myTitle', 'myMessage')
await client.error('Couldnt read file', 'errorMessage', {
key: 'fileReadKey',
limitFor: {
years: undefined,
months: undefined,
weeks: undefined,
days: 1,
hours: undefined,
minutes: undefined,
seconds: undefined,
}
})
Test messages
Execute blocktank-util-slack-cli
in the terminal to send test messages. *Install with npm i @synonymdev/blocktank-util-slack-client
first.
Versioning
- Increase version in
package.json
. - Add changes to
CHANGELOG.md
. - Commit changes.
- Tag new version:
git tag v0.1.0
. - Push tag
git push origin v0.1.0
. - Build:
npm run build
. - Publish to npm:
npm publish
.