showing results for - "discord bot javascript make online"
Moritz
14 Nov 2019
1// require the discord.js module
2const Discord = require('discord.js');
3
4// create a new Discord client
5const client = new Discord.Client();
6
7// when the client is ready, run this code
8// this event will only trigger one time after logging in
9client.once('ready', () => {
10	console.log('Ready!');
11});
12
13// login to Discord with your app's token
14client.login('your-token-goes-here');