Skip to content

A webhook server which allows you to proxy, regulate, and protect your webhook activity.

License

Notifications You must be signed in to change notification settings

Funi-Dog-Games/WebhookServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webhook Server

image

Rename .env.dist to .env and fill in the values with an authorization key and a discord bot token The key should be your own, but is is optional. If you do not provide an authorization token, it will not be required

How to post

POST /webhook

Authorization: The key in .env or anything if AUTHORIZATION is not set in the env file

Message: The message OR EMBED to send.

Channel: The channel identifier or ID

Embed support

Instead of a string in Message, you can use a table to provide title and description

{
    "Title": "Title",
    "Description": "Description"
}

If you would like to add more, you must change the isDirectory function and add extra functionality based on the discord.js v12 docs

Channel identifiers

If you want to provide strings to send to a channel instead of an ID, you can add a dictionary entry to channels

const channels = {
    ["channel-identifier"]: "channelID string",
    ["channel2"]: "1" // MUST be in string form
}

Contributions accepted

If you find any issues or feature requests, post them in issues or open a pull request.

About

A webhook server which allows you to proxy, regulate, and protect your webhook activity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published