https://github.com/robocorp/robot-slack-notifier
Robot for sending Slack notifications
https://github.com/robocorp/robot-slack-notifier
Last synced: 5 months ago
JSON representation
Robot for sending Slack notifications
- Host: GitHub
- URL: https://github.com/robocorp/robot-slack-notifier
- Owner: robocorp
- License: apache-2.0
- Created: 2020-09-04T09:34:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-17T12:58:19.000Z (over 5 years ago)
- Last Synced: 2025-06-21T00:05:15.275Z (about 1 year ago)
- Language: RobotFramework
- Size: 17.6 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack Notifier Robot
Robot for sending Slack notifications
## Configuration
Configure following environment variables:
#### MESSAGE
1. Literal notification string
```
MESSAGE=Hello World
```
2. Python expression with Work Item- and Environment- variables in namespace
```
MESSAGE="Environment variable: %s, Work Item variable: %s" % (PYTHON_EXE, my_var)
```
#### CHANNEL
Slack channel name
```
CHANNEL=general
```
#### SECRET
Name of the Robocorp Vault's secret that holds the Slack Webhook in key
```
SECRET=SlackSecret
```
...this should be in Robocorp Vault - copy paste webhook URL from Slack:
```
SlackSecret.WEBHOOK=https://hooks.slack.com/services/123456789/12345678901/123456789012345678901234
```