Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.

logsquaredn/discord-notification-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-notification-resource

A Concourse resource for webhook notifications in Discord. Written in Go.

Example

resource_types:
- name: discord-notification-resource
  type: registry-image
  source:
    repository: logsquaredn/discord-notification-resource
    tag: latest

resources:
- name: notify
  type: discord-notification-resource
  source:
    ...

jobs:
- name: some-job
  plan:
  ...
  - put: notify
    params:
      ...

Source Configuration

Parameter Required Description
webhook_id yes the id of the webhook to post to see below (1)
token yes the token to use to authenticate when posting to the webhook see below (2)

(1) webhook_id will be the second to last path parameter in the url copied from the Copy Webhook URL button below

(2) token will be the last path parameter in the url copied from the Copy Webhook URL button below

webhook-id

Behavior

check

not implemented

in

not implemented

out

see discordgo.WebhookParams. Addtionally:

Parameter Required Description
wait no whether or not to wait on the response and gather version and metadata info from it. Default false
content_file no path to a file containing the content of the message. Overrides content
username_file no path to a file containing the username for the message. Overrides username
avatar_url_file no path to a file containing the url of the avatar for the message. Overrides avatar_url

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published