Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jfollmann/google-daily-bot
A shellscript sample to call incomming webhooks from google chat
https://github.com/jfollmann/google-daily-bot
Last synced: 15 days ago
JSON representation
A shellscript sample to call incomming webhooks from google chat
- Host: GitHub
- URL: https://github.com/jfollmann/google-daily-bot
- Owner: jfollmann
- Created: 2022-01-28T13:26:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T13:53:49.000Z (over 2 years ago)
- Last Synced: 2024-11-07T09:52:54.731Z (2 months ago)
- Language: Shell
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# google-daily-bot
## Screenshot
## Requirements
To be able to parse a JSON that chucknorris API returns, you need the cli [JQ](http://www.compciv.org/recipes/cli/jq-for-parsing-json/).
* JSON is a lightweight format that is nearly ubiquitous for data-exchange. jq is a command-line tool for parsing JSON.## How to run
Configure `daily-bot.sh` and run:
```bash
bash daily-bot.sh
```## Configure crontab:
This config allways run bash every weekday 09:45 AM.
To other config, look: https://crontab.guru/
```bash
55 09 * * 1-5 /PATH/PROJECT/FILE/daily-bot/daily-bot.sh >> /PATH/PROJECT/FILE/daily-bot/history.log 2>&1
```References:
- https://developers.google.com/chat/how-tos/webhooks
- https://developers.google.com/chat/api/guides/message-formats