https://github.com/magnitopic/discord-webhook-handler
Create custom Discord webhooks for GitHub
https://github.com/magnitopic/discord-webhook-handler
js json webhook
Last synced: 3 months ago
JSON representation
Create custom Discord webhooks for GitHub
- Host: GitHub
- URL: https://github.com/magnitopic/discord-webhook-handler
- Owner: magnitopic
- Created: 2021-05-30T08:44:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-30T10:35:40.000Z (about 5 years ago)
- Last Synced: 2025-03-12T21:23:04.886Z (over 1 year ago)
- Topics: js, json, webhook
- Language: JavaScript
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord-webhook-handler
This NodeJS proyect alows you to customize the **webhook** messages that **GitHub** sends **Discord**.
__New to webhooks?__ You can learn more about them in [this YouTube video](https://youtu.be/41NOoEz3Tzc).
# Install
## The *.env* file
The *.env.example* file contains the name of the enviroment variable that is used to connect to Discord.
You can copy/paste it and rename it to *__.env__*. Inside paste the Discord webhook url.
## Install dependencies
Install the paquetes the project needs by running in your console:
```bash
npm install
```
## Run
Run the server by runing in your console:
```bash
npm run dev
```
Server will run on port 5000.
## Connect to GitHub
You can now create a webhook in your GitHub repository and enter your server's public url /github. Something like: _yourServerUrl.com/github_