Skip to content

seeuinhell95/Github-Releases-Discord-Alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Github-Releases-Discord-Alerts

Linux JS Script for getting notifications on Discord when a specific github repository drops a new release

βš™οΈ Install Dependencies

πŸ”§ NodeJS / npm

mkdir -p /home/discord-bots
cd /home/discord-bots

sudo apt install nodejs npm

πŸ”§ PM2

sudo npm install -g pm2

πŸ”§ Node-fetch module

npm install node-fetch@2

βš™οΈ Create and edit the script

cd /home/discord-bots

nano github.js

Paste the script from here:
https://github.com/seeuinhell95/Github-Releases-Discord-Alerts/blob/main/github.js

Add your discord webhook here:

// Webhook URL
const WEBHOOK_URL = "YOUR-DISCROD-WEBHOOK-URL";

Add Github repositories you want to get notifications when a new release has been dropped:

// GitHub repositories to monitor
const REPOS = [
  "YOUR-REPO1", // No url needed, just author/reponame
  "YOUR-REPO2"
];

βš™οΈ Start the Bot with pm2

cd /home/discord-bots
pm2 start github.js --name github-release-bot

# Check if its online:
pm2 list

# You should see something like this:
β”Œβ”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ id  β”‚ name                β”‚... β”‚statusβ”‚ cpu    β”‚ mem  β”‚ ...    β”‚
β”œβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 0   β”‚ github-release-bot  β”‚... β”‚onlineβ”‚ 0%     β”‚ 30MB β”‚ ...    β”‚
β””β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜

About

Linux JS Script for getting notifications on Discord when a specific github repository posts a new release

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors