1//first you must install dicord.js by running the command: npm install discord.js
2//once u do that copy and paste this into your main file
3const Discord = require('discord.js');
4const client = new Discord.Client();
5
6client.on('ready', () =>{
7 client.user.setStatus('your status')
8 console.log('Connected!')
9})
10//rest of your code
11
12//always remember to never share your token with anyone
13client.login('your-token-here')