1const Discord = require('discord.js');
2const client = new Discord.Client();
3const token = 'TOLKEN'; // Add your token here
4
5client.on('ready', () => {
6 console.log('The client is ready!')
7 })
8
9client.login(token)
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')
1const Discord = require('discord.js') //this says that its using discord.js and classifing it as a bot
2const bot = new Discord.Client();
3
4const token = 'put your bots token here!';
5//link to the dev portal to make your own discord bot here: https://discord.com/developers/applications
1const Discord = require('discord.js');
2const client = new Discord.Client();
3const token = 'YOUR TOKEN HERE'; // For get a token , go here https://discord.com/developers/applications
4
5client.login(token);