Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deven96/excuses
Send an excuse to slack when away
https://github.com/deven96/excuses
automation bash-script slack
Last synced: 20 days ago
JSON representation
Send an excuse to slack when away
- Host: GitHub
- URL: https://github.com/deven96/excuses
- Owner: deven96
- License: mit
- Created: 2021-02-12T20:25:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-15T17:21:45.000Z (almost 4 years ago)
- Last Synced: 2024-12-17T06:08:58.510Z (22 days ago)
- Topics: automation, bash-script, slack
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Excuses
Send an excuse to your "I will be away" Channel on slack after x seconds away from your computer
## Setup
```bash
#Configure the following env variables for slack
#- APP_SLACK_WEBHOOK
#- APP_SLACK_CHANNEL (optional)
#- APP_SLACK_USERNAME (optional)
#- APP_SLACK_ICON_EMOJI (optional)# Make sure to add chat:write access to your app to enablethe application post as your user and not as Bot
# Read https://api.slack.com/scopes
```Make sure excuses is executable
```bash
chmod +x ./excuses.sh
# Run the tests
./excuses.sh -t
```Use nohup to run in background
```bash
# I considered using crontab but cronjobs have no access to GUI sessions (Quarz dictionary on MacOS) used to tell
# if a system is locked or not,
# enter the following to run excuses
`./excuses.sh &>/tmp/excuses.log`
```This sets up a [slack shell script](https://gist.github.com/andkirby/67a774513215d7ba06384186dd441d9e) that helps in sending messages to channels