Giter VIP home page Giter VIP logo

resource-webhooks's Introduction

About

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.

Contributing

  1. Fork & clone the repository, and make sure you're on the main branch
  2. Run npm install
  3. Code your heart out!
  4. Run npm run lint to run ESLint
  5. Run npm run build to transpile into JavaScript and ensure no type errors remain
  6. Submit a pull request (Make sure you follow the conventional commit format)

Adding content

  1. Add the file into ./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)
  2. Each new paragraph (double newline character) will be posted in a new message. Try to use as few messages as possible (the limit is 2000 characters per message) to avoid rate limiting. You can add a spacer and simulate a new message with _ _
  3. Channel names and other escape sequences should have the format %FOO_BAR% and need to be added to the mapping replacePatterns in ./src/index.ts
  4. Add a Webhook requirement to ./.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 }}

resource-webhooks's People

Contributors

almostsouji avatar anandre avatar dependabot[bot] avatar favna avatar fyko avatar icrawl avatar itsurcute avatar jiralite avatar kyranet avatar monbrey avatar notsugden avatar papaia avatar uhkevinmc avatar vladfrangu avatar voltrexkeyva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

resource-webhooks's Issues

Another hosting provider

Pylexnodes is another bot hosting provider that can be added into the affordable hosting providers list, we have free and paid plans.
It would be amazing if Pylex could be added to the list.
discord
store
main page

Branding update

Webhooks still use the old guild icon, needs to be adapted in env vars

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.