Slack
To send notifications to Slack chat, you’ll need to configure the following settings:
Configuration:
- Token
- User name
JavaScript Properties:
New Message:
Creates a message object.
msg = notifr.newMessage();
msg.entity_id = 'slack.name';
msg.attributes = {
'channel': '#ch',
'text': 'some text'
};
Value | Description |
---|---|
newMessage() | Method |
msg | Type: Object (Message) |
Code Example:
# slack
# ##################################
sendMsg =(body)->
msg = notifr.newMessage();
msg.entity_id = 'slack.name';
msg.attributes = {
'channel': '#ch',
'text': 'some text'
};
notifr.send(msg);
Last modified February 5, 2024: Merge pull request #270 from e154/master (7108cb6)