1.0.7 • Published 4 years ago
discord-youtube-notifications v1.0.7
What is discord-youtube-notifications?
Discord-youtube-notifications is a simple package for getting the latest videos from your favorite youtuber's get sent straight to a channel you choose in your discord server.
Example
const Discord = require('discord.js')
const client = new Discord.Client()
const youtubeNotifications = require('discord-youtube-notifications')
client.on('ready', () => {
const youtubeChannelID = [
'youtube channel id', //Channel ID of a youtube channel
'youtube channel id' //Another channel ID of a youtube channel
]
//You can add as many channel id you wish to the array
const channel = client.channels.cache.get('discord channel id')
//The Channel ID you want the message to send to
youtubeNotifications(youtubeChannelID, channel)
})
client.login('your discord bot token')
Quick Setup
Discord-youtube-notifications uses quick.db to store your video so the same videos don't get reposted into the channels Its easy for you to do a quick setup to get this all working 1. First you need to open your cmd/powershell as run as administrator 2. Copy and paste this into your cmd/powershell npm install --global windows-build-tools --vs2015 3. When its installed copy and paste this into your bot directory npm i discord-youtube-notifications 4. Your all good to go