Shard takes too long to get ready

On my console, my bot is remaining offline and not starting and it says "Shard 0 took too long to get ready." No other errors appear in the console. any possible fixes or reasons why?
7 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
banana ✿
banana ✿OP8mo ago
here:
require("dotenv").config();
const { ShardingManager } = require("discord.js");
const token = process.env.NODE_ENV == "development" ? process.env.TOKEN_DEV : process.env.TOKEN;

const manager = new ShardingManager("./src/index.js", { token });

manager.on("shardCreate", (shard) => {
console.log(`Launched shard ${shard.id}`);
});

manager.spawn();
require("dotenv").config();
const { ShardingManager } = require("discord.js");
const token = process.env.NODE_ENV == "development" ? process.env.TOKEN_DEV : process.env.TOKEN;

const manager = new ShardingManager("./src/index.js", { token });

manager.on("shardCreate", (shard) => {
console.log(`Launched shard ${shard.id}`);
});

manager.spawn();
oh that's just my client file:
require("dotenv").config();

const UwUClient = require("./structures/UwUClient.js");

const client = new UwUClient();
client.login();
require("dotenv").config();

const UwUClient = require("./structures/UwUClient.js");

const client = new UwUClient();
client.login();
banana ✿
banana ✿OP8mo ago
this is the uwu client file
d.js docs
d.js docs8mo ago
To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files. Please add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
client
.on("debug", console.log)
.on("warn", console.log)
client
.on("debug", console.log)
.on("warn", console.log)
- Note: if you initialize your Client as bot or other identifiers you need to use these instead of client - If the output is too long to post consider using a bin instead: gist | paste.gg | sourceb.in | hastebin
banana ✿
banana ✿OP8mo ago
it doesnt come online it's not turning on because it stops at shard 0 took too long got it i just added the log, it doesn't print anything
Booboo v(=∩_∩=)フ
Is it ok if I revive this thread, I dont want to make a new one and I am having the same troubles. Or should I make a new one @Qjuh? I will make a new one.
Want results from more Discord servers?
Add your server