Crates.io | discord-webhook-cli |
lib.rs | discord-webhook-cli |
version | 0.1.1 |
source | src |
created_at | 2023-09-02 05:46:07.432184 |
updated_at | 2023-09-02 05:47:42.703616 |
description | Simple CLI for Discord webhooks (not discord bots) |
homepage | https://github.com/ActuallyHappening/Discord-Webhook-CLI |
repository | https://github.com/ActuallyHappening/Discord-Webhook-CLI |
max_upload_size | |
id | 961547 |
size | 41,708 |
A simple CLI for sending messages through discord web hooks. Useful for CI messages.
Requires cargo
(and hence the rust
toolchain) installed on your system.
Then install from crates.io:
cargo install discord-webhook-cli
# NOTE: Will run dotenv and load from .env file if it exists, OVERWRITING CLI ARGS!
DISCORD_WEBHOOK_CLI_URL="https://your-url" DISCORD_WEBHOOK_CLI_MSG="cool message" DISCORD_WEBHOOK_CLI_USERNAME="Awesome Easy Bot" discord-webhook-cli
# Or you can use the flags
# PS: RUST_LOG exists for debugging purposes
RUST_LOG="trace" discord-webhook-cli --url "https://your-url" --msg "another cool message" --username "Awesome Easy Bot"