An open API service indexing awesome lists of open source software.

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

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