dhook

command module
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

dhook

dhook is a small utility to send messages to Discord via a webhook endpoint.

Usage:

/path/to/dhook [options]

Command Line Parameters
Parameter Alias(es) Description
-message -msg Required: The message content to send.
-webhook-url -url Required [1]: The webhook URL to send the message to.
-username -user The username to send the webhook as.
-avatar-url -avatar URL of an image to use as the avatar.
-embed-url The URL for the embed title.
-embed-title -title The title of the embed.
-embed-description -description The description text in the embed object.
-embed-colour -colour The colour of the embed [2].
-embed-footer-text -footer The text of the footer in the embed object.
-embed-footer-icon -footer-icon A link to the icon to be used in the footer of the embed object.

[1] -webhook-url may be set in one of the following ways - List below is in order of preference:

  1. Command-line parameter
  2. Golang Package Variable: main.webhookURL
  3. Environment variable: DHOOK_URL

[2] -embed-colour:

  • Also has the following aliases: -embed-color and -color
  • This is the decimal value, e.g. -embed-colour 34047
  • A good tool to use is https://www.spycolor.com/.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL