HUB
Sign inSign up

westwind027/discordmsg

By westwind027

•Updated about 4 years ago

Image
0

387

westwind027/discordmsg repository overview

⁠DiscordMessage

Writes a discord message to a webhook URL.

⁠Direktiv

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(.)

⁠Input

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.

⁠Output

If the action is successful, the discord message should appear in the appropriate channel it was sent to.

⁠Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.discord.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

sha256:1759cc121…

Size

2.3 MB

Last updated

about 4 years ago

docker pull westwind027/discordmsg