1const Discord = require('discord.js');
2
3const bot = Discord.Client();
4// config.json
5// {"token": "Your token!"}
6// Make sure you saved it in the root directory
7// with your main script.
8const config = require('./config.json');
9const token = config.token;
10
11bot.once('ready', () => {
12 console.log('Online!');
13})
14
15bot.login(token);