bot crashed without errors
sometimes my bot crashed without a error..
the activity goes away and the bot doesn´t react
does anyone have a way to detect why?
22 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!
- ✅
Marked as resolved by staffwhat is your djs version
14.13.00
can you show the output of it when running npm ls discord.js?
The activity go away and the bot doesnt react
don't know if it will go offline because I always restart at this moment
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 | hastebin@Qjuh and now im waiting for a crash?
okay thanks ! 🙂
{"level":"error","message":"debug 10/22/2023 22:50:40 : [WS => Shard 0] Heartbeat acknowledged, latency of 104ms."}
this was the last heartbeat yesterday and at 23:38 the bot crash again without something..
maybe this is a problem?
Shouldnt
Can you do
npm ls @discordjs
sure u mean @discordjs ?
or
I meant what I said
@discordjs
is for the submodulesokok 😄
thats why my question 😄
npm ls @discordjs/rest
maybe this the reason for the crash?
hm the bot still crashes..
maybe if u see the code u can help
i think i catch every error..
https://github.com/regenmantel/Die-Staemme-Bot-v2
GitHub
GitHub - regenmantel/Die-Staemme-Bot-v2
Contribute to regenmantel/Die-Staemme-Bot-v2 development by creating an account on GitHub.
yes still this kind..
only that the bot stop the heartbeat..
its only 1 max 2 times a day..
most of them once an hour
and dont know, i´ve always done it that way^^
people still play Die Stämme? :D
cant you run the cronjobs through your ready event?
then you dont need to login new clients
yes haha 😄
okay i rewritte the code, i hope it helps 😄
i think, it works
ty 😄