https://github.com/halfzebra/scheduled-discord-message
https://github.com/halfzebra/scheduled-discord-message
cli cron discord-bot rust webhook
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/halfzebra/scheduled-discord-message
- Owner: halfzebra
- Created: 2021-09-26T22:35:36.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T23:50:59.000Z (over 4 years ago)
- Last Synced: 2025-12-28T04:24:19.809Z (6 months ago)
- Topics: cli, cron, discord-bot, rust, webhook
- Language: Rust
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scheduled-discord-message
This repository , which can send Discord messages to a Webhook endpoint.
## Usage
Create a file `tasks.json`:
```json
[
{
"url": "",
"schedule": "0 37 13 * * *",
"webhook": {
"username": "Sally",
"content": "Time for the daily Sally!"
}
}
]
```
Then run:
```bash
cargo build --relase
# Don't forget to update the URL
./target/release/scheduled-discord-message -c ./examples/tasks.json
```
## Motivation
> Why this is written in Rust?
This application is intended to run on a Raspberry Pi, where I want to use the CPU as efficiently as possible.
The hypothesis is that Rust allows that, but the benchmark is to be implemented.
## Related links
- https://github.com/halfzebra/tokio-cron-async