Categorygithub.com/zerocube/dhook
modulepackage
0.1.6
Repository: https://github.com/zerocube/dhook.git
Documentation: pkg.go.dev

# README

dhook

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

Usage:

/path/to/dhook [options]

Command Line Parameters

ParameterAlias(es)Description
-message-msgRequired: The message content to send.
-webhook-url-urlRequired [1]: The webhook URL to send the message to.
-username-userThe username to send the webhook as.
-avatar-url-avatarURL of an image to use as the avatar.
-embed-urlThe URL for the embed title.
-embed-title-titleThe title of the embed.
-embed-description-descriptionThe description text in the embed object.
-embed-colour-colourThe colour of the embed [2].
-embed-footer-text-footerThe text of the footer in the embed object.
-embed-footer-icon-footer-iconA 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/.