Writes a discord message to a webhook URL.
An example workflow of using the container on Direktiv.
id: post-to-discord
functions:
- id: post
image: direktiv/discordmsg:v1
description: "Sends a message to a discord channel"
states:
- id: postToDiscord
type: action
action:
function: post
input: jq(.)
The input needed to run the above workflow properly is the following:
input:
message: ""
tts: false
url: "DISCORD_CHAT_WEBHOOK_URL"
NOTE: The tts field is optional. Its whether you want discord to announce the message e.g. talk to speech.
If the action is successful, the discord message should appear in the appropriate channel it was sent to.
In the case that an error is encountered, it will present in the following format:
{
"errorCode": "com.discord.error",
"errorMsg": "Something went wrong"
}
Content type
Image
Digest
sha256:1759cc121…
Size
2.3 MB
Last updated
about 4 years ago
docker pull westwind027/discordmsg