This script sends a Discord notification whenever a YouTube channel that you follow posts a new video.
- Node.js installed
- A Discord webhook URL
- One or more RSS feed URLs of the YouTube channels you want to track
- Clone the repository:
git clone https://github.com/yuukifur/youtube-webhook.git
- Install dependencies:
npm install
- Rename
config.example.js
toconfig.js
. - Set the
DISCORD_WEBHOOK_URL
variable to your Discord webhook URL inconfig.js
. - Add the RSS feed URLs of the YouTube channels you want to track to the
RSS_FEED_URLS
array inconfig.js
. - Run the script:
node index.js
- The script stores the information of the last video that was sent as a notification in the
lastVideos.json
file. Don't delete this file unless you want to reset the script's progress. - The script includes several
console.log()
statements to log the script's progress and debugging information to the console.