This script will send a message to your server when the Discord status page is updated
- Auto setup
npm run setup
- Clone this repository
- Install the dependencies
npm install
- Compile typescript
npm run build
- Setup your config (see below)
- Make a blank JSON file:
src/webhook/latest.json
- Setup the webhooks file (see below)
- Set your OAuth2 URL in
index.html
- Start the script
npm run start
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"
};
Make src/webhooks/webhooks.json
containing the following:
{
"webhooks": []
}