auto-yt-notifier
v1.4.2
Published
Gives you the information optimial for discord use.
Downloads
2
Readme
Auto Youtube Notifier
This package is used to get new videos from your selected youtuber. This package only allows one channel at a time.
Credits to daydreamercodes for the repo and most of the code. I've only made it so its easier to use by only allowing one id, which also puts less stress on the youtube API, and for the data to return simply.
All the information returned is optimised for Discord use.
const YTNotifier = require('auto-yt-notifier'), Notif = new YTNotifier({ channel: '', check_time: 60 });
Notif.on('video', (video) => {
console.log(video);
video:
{
channelName: 'deox',
url: 'https://www.youtube.com/watch?v=Fb07KmS94c4',
id: 'Fb07KmS94c4'
}
});
// The ID is so it doesn't send the same video again.