Chargez un fichier de configuration discordjs

const Discord = require('discord.js');

const bot = Discord.Client();
// config.json 
// {"token": "Your token!"}
// Make sure you saved it in the root directory
// with your main script.
const config = require('./config.json');
const token = config.token;

bot.once('ready', () => {
	console.log('Online!');
})

bot.login(token);
Magnificent Monkey