Discord bot keeps going offline for no reason
There are no errors in the logs, I'm using PM2 so I don't think its anything related to the bot not receiving requests, I'm so lost right now in terms of whats going on
Bot is in 1500 servers, sharded
Using discordjs v14
5 Replies
- 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!I'm not sure what code to show due to the fact that I don't see any erorrs
Nope
Both
The bot user itself goes offline, and then people cant use the bot
Yeah
It just shows when it comes online and what shard its on
I could probably log more I just don't know what to log
I also log errors on interaction create
But if there was an error, the bot would restart due to pm2 no?
At least thats what it does for me
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.
- 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 | hastebinIll log and then come back if I encounter any issues
ty for the help
Still no logs
went offline again
What are you using?
Nevermind