help create my discord bot on nodejs and discord.js
my code
require('dotenv').config();
const { Client, Intents } = require('discord.js');
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES
]
});
const { YoutubeNotifier } = require('discord-bot-youtube-notifications');
const notifier = new YoutubeNotifier({
youtubeApiKey: process.env.YOUTUBE_API_KEY,
discordClient: client,
channel: process.env.CHAT_ID,
});
client.on('ready', () => {
console.log('Application start!')
notifier.start();
});
client.login(process.env.SECRET_TOKEN);
