A collection of webhooks to update our resources on discord
MIT License
Each file in ./resources
expects a github webhook in the repositories secrets in the format WEBHOOK_FILE_NAME
.
Deploying the webhook messages is done manually via workflow dispatch.
The provided tags are the resource names in discord channel format and separated by the ,
character.
Example: rules, useful-servers
The repository requires the WEBHOOK_AVATAR
and WEBHOOK_NAME
repository secrets which control the webhooks avatar and name respectively for all deployed webhook resources.
npm install
npm run lint
to run ESLintnpm run build
to transpile into JavaScript and ensure no type errors remain./resources
(The file name should be derived from the channel the webhook will post to for added verbosity. The channel foo-bar
becomes FOO_BAR.md
)_ _
%FOO_BAR%
and need to be added to the mapping replacePatterns
in ./src/index.ts
./.github/workflows/deploy.yml
. The repository secret should have the format WEBHOOK_CHANNEL_NAME_ID
and WEBHOOK_CHANNEL_NAME_TOKEN
for added verbosity. The entry for our example is https://discord.com/api/webhooks/${{ secrets.WEBHOOK_FOO_BAR_ID }}/${{ secrets.WEBHOOK_FOO_BAR_TOKEN }}