const Discord = require('discord.js');
const config = require('./config.json');
const API = require("./api.json");
const manager = new Discord.ShardingManager('./bot.js', {
	token: API.discord
});

//Spawn with a relevant number of shards automatically
manager.spawn();

const Discord = require('discord.js');
const config = require('./config.json');
const manager = new Discord.ShardingManager('./bot.js');

//Spawn with a relevant number of shards automatically
manager.spawn();

--- 
+++ 
@@ -1,6 +1,9 @@
 const Discord = require('discord.js');
 const config = require('./config.json');
-const manager = new Discord.ShardingManager('./bot.js');
+const API = require("./api.json");
+const manager = new Discord.ShardingManager('./bot.js', {
+	token: API.discord
+});
 
 //Spawn with a relevant number of shards automatically
 manager.spawn();
Add token in sharding manager
