https://github.com/ilgooz/service-slack
MESG Service that sends a notification on Slack
https://github.com/ilgooz/service-slack
Last synced: about 2 months ago
JSON representation
MESG Service that sends a notification on Slack
- Host: GitHub
- URL: https://github.com/ilgooz/service-slack
- Owner: ilgooz
- Created: 2018-07-10T15:24:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T15:28:48.000Z (almost 7 years ago)
- Last Synced: 2025-01-31T13:22:30.998Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack
Send a notification through Slack's API
```
mesg-core service deploy https://github.com/mesg-foundation/service-slack.git
```## Tasks
### notify
Task key: **notify**
#### Inputs
| **key** | **type** | **description** |
| --- | --- | --- |
| **endpoint** | `String` | Create a webhook here https://slack.com/apps/new/A0F7XDUAZ-incoming-webhooks |
| **icon_emoji** | `String` | Emoji for the bot picture. Find the emoji in your Slack |
| **text** | `String` | Content of the text you want to send |
| **username** | `String` | Name of the user that will post the message |#### Outputs
##### error
Output key: **error**
Result when an error happend
| **key** | **type** | **description** |
| --- | --- | --- |
| **message** | `String` | The description of the error |##### success
Output key: **success**
Result when everything is as expected
| **key** | **type** | **description** |
| --- | --- | --- |