YoutifyNotify is a Node.js module that allows you to receive new video notifications from a specific YouTube channel and optionally send them to Discord servers.
To use YoutifyNotify, you need to install it via npm:
npm install youtify-notify
With YoutifyNotify, you can automatically track new videos from your favorite YouTube channels. Additionally, you can optionally send these notifications to your Discord servers.
const YoutifyNotify = require('youtify-notify');
// Creating an instance of YoutifyNotify
const notifier = new YoutifyNotify({
channelId: 'CHANNEL_ID_HERE',
discordWebhook: 'DISCORD_WEBHOOK_URL_HERE',
message: '🎉 New video! **${title}** by ${author}: ${url}'
});
// Listening for the newVideo event
notifier.on('newVideo', (video) => {
console.log(`🚀 New video: ${video.title}`);
});
// Starting notifications
notifier.start();
- channelId: The ID of the YouTube channel you want to watch.
- discordWebhook (Optional): The webhook URL to send new video notifications to Discord.
- message (Optional): The notification message to send to Discord. Variables like
${title}
,${url}
, and${author}
can be used. - interval (Optional): The interval between checks for new videos (default: 5000 ms).
To send new video notifications to your Discord server:
const notifier = new YoutifyNotify({
channelId: 'CHANNEL_ID_HERE',
discordWebhook: 'DISCORD_WEBHOOK_URL_HERE',
message: '🎉 New video! **${title}** by ${author}: ${url}'
});
notifier.start();