Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Benricheson101/discord-statuspage-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Status Webhook

What is it?

This script will send a message to your server when the Discord status page is updated

Setup

Auto-Setup (Recommended)

  1. Auto setup npm run setup

Manual Setup

  1. Clone this repository
  2. Install the dependencies npm install
  3. Compile typescript npm run build
  4. Setup your config (see below)
  5. Make a blank JSON file: src/webhook/latest.json
  6. Setup the webhooks file (see below)
  7. Set your OAuth2 URL in index.html
  8. Start the script npm run start

Config

Make src/config.js and configure the following:

module.exports.setup = {
    content: "The status page has been updated.", // leave blank for no message
    port: 80
};

module.exports.oauth = {
    client_id: "",
    client_secret: "",
    grant_type: "authorization_code",
    redirect_uri: "",
    scopes: "webhook.incoming"
};

Webhooks

Make src/webhooks/webhooks.json containing the following:

{
  "webhooks": []
}

About

Stop forking this lol, use this instead -->

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published