1.4.2 • Published 3 years ago

auto-yt-notifier v1.4.2

Weekly downloads
4
License
ISC
Repository
-
Last release
3 years ago

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.