command
module
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: Mar 12, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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:
- Command-line parameter
- Golang Package Variable:
main.webhookURL
- 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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.