https://github.com/theegghead27/discord-webhook-rs
A little command-line script written in Rust to interface with Discord webhooks.
https://github.com/theegghead27/discord-webhook-rs
discord discord-webhook discord-webhooks reqwest rust tokio tokio-rs
Last synced: 18 days ago
JSON representation
A little command-line script written in Rust to interface with Discord webhooks.
- Host: GitHub
- URL: https://github.com/theegghead27/discord-webhook-rs
- Owner: TheEgghead27
- License: gpl-2.0
- Created: 2022-09-07T01:53:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T17:29:23.000Z (over 3 years ago)
- Last Synced: 2025-01-05T07:39:08.372Z (over 1 year ago)
- Topics: discord, discord-webhook, discord-webhooks, reqwest, rust, tokio, tokio-rs
- Language: Rust
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rust Discord Webhook Agent
This is a little "script" I wrote for practice with Rust and asynchronous operations within Rust.
## Getting started
Clone this GitHub repository, then `cd` into the project and compile it (unlike other languages, cargo automatically installs dependencies on build/run).
```sh
git clone https://github.com/TheEgghead27/discord-webhook-rs.git
cd discord-webhook-rs
cargo build --release
```
## Configuration
The program expects a `webhooks.tsv` file at your `XDG_CONFIG_HOME` (normally `~/.config`), with a format as follows:
```tsv
WEBHOOK_URL NAME(optional) PREFIX(optional)
```
Note the use of `\t` tab-separated values instead of whitespaces.
If you are only specifying `WEBHOOK_URL`, you do not have to include a tab.
## Invokation
Simply type the built executable's filename, optionally followed by a list of files you wish to attach to your webhook message.
```
./target/release/discord-webhook-rs [FILENAMES]
```
If you prefer, you can move the `discord-webhook-rs` binary executable to another location/name and execute it there.