discord-webhook-cli

Crates.iodiscord-webhook-cli
lib.rsdiscord-webhook-cli
version0.1.1
sourcesrc
created_at2023-09-02 05:46:07.432184
updated_at2023-09-02 05:47:42.703616
descriptionSimple CLI for Discord webhooks (not discord bots)
homepagehttps://github.com/ActuallyHappening/Discord-Webhook-CLI
repositoryhttps://github.com/ActuallyHappening/Discord-Webhook-CLI
max_upload_size
id961547
size41,708
Caleb Yates (ActuallyHappening)

documentation

README

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"
Commit count: 7

cargo fmt