If you want to know why this repo was created read this story about โฌ1.000,00 voucher.
Clone repository
$ git clone https://github.com/davinci2015/youtube-subscriber.git
cd into directory
$ cd youtube-subscriber
Install NPM dependencies
$ npm install
Before running the script you should update variables inside of config.js
file.
Update following variables:
channelId
client_secret
client_id
After updating config variables you can run server and let him do the magic.
$ node main.js