Client is in a strange ready/not ready state
https://github.com/ThreadedTickets/Bot/tree/migrate-to-bridge-v2
sharding file: https://github.com/ThreadedTickets/Bot/blob/migrate-to-bridge-v2/src/cluster.ts
Using worker processes, all the socket connections are working as intendedindex.ts: https://github.com/ThreadedTickets/Bot/blob/migrate-to-bridge-v2/src/index.ts
All 3 ways of logging the token return the correct tokenready event: https://github.com/ThreadedTickets/Bot/blob/migrate-to-bridge-v2/src/events/ready.ts
The console.log in here logs this: READY null false 0 Screws
Error: (I get this error whenever my bot tried to make an api call. )
The screenshot is of the bridge server, showing that the bot is reporting ready
I am running the bot with IS_PROD=false so none of the prod functions are being called. the set status file is also not being run as i have not set the env variables
There are 0 errors when the bot actually logs in using client.login() and no logs showing that it gets disconnected
any other info that you might want just ping me and i can add it in
4 Replies
using node 20.19.4
You mean just import it from index.ts?
still gives this:
READY null false 0 Screws
assuming that you meant to do it like this

djs 14.21.0
looks like it does, ill have to have a look at why
ah thanks, looks like its fixed
im guessing you mean index.ts?
its cause the bot will tell the bridge that its ready to start that shard then the bridge will send an ok
was also gonna ask, how do i setup the @discord.js/proxy or do i just install it