#discord

bin+lib discord-webhook-cli

Simple CLI for Discord webhooks (not discord bots)

1 unstable release

0.1.1 Sep 2, 2023
0.1.0 Sep 2, 2023

#189 in #discord

MIT license

13KB

Discord-Webhook-CLI

A simple CLI for sending messages through discord web hooks. Useful for CI messages.

Installation

Requires cargo (and hence the rust toolchain) installed on your system. Then install from crates.io:

cargo install discord-webhook-cli

Use

# 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"

Dependencies

~12–25MB
~377K SLoC