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
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
treble/luna
treble/luna8mo ago
what is your djs version
Osse
Osse8mo ago
14.13.00
treble/luna
treble/luna8mo ago
can you show the output of it when running npm ls discord.js?
Osse
Osse8mo ago
No description
Osse
Osse8mo ago
The activity go away and the bot doesnt react don't know if it will go offline because I always restart at this moment
d.js docs
d.js docs8mo ago
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
Osse
Osse8mo ago
@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..
Osse
Osse8mo ago
maybe this is a problem?
No description
chewie 🌈
chewie 🌈8mo ago
Shouldnt Can you do npm ls @discordjs
Osse
Osse8mo ago
sure u mean @discordjs ? or
npm ls discord.js
npm ls discord.js
chewie 🌈
chewie 🌈8mo ago
I meant what I said @discordjs is for the submodules
Osse
Osse8mo ago
okok 😄
No description
Osse
Osse8mo ago
thats why my question 😄
chewie 🌈
chewie 🌈8mo ago
npm ls @discordjs/rest
Osse
Osse8mo ago
No description
Osse
Osse8mo ago
maybe this the reason for the crash?
No description
Osse
Osse8mo ago
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.
Osse
Osse8mo ago
yes still this kind.. only that the bot stop the heartbeat..
No description
Osse
Osse8mo ago
its only 1 max 2 times a day.. most of them once an hour and dont know, i´ve always done it that way^^
chewie 🌈
chewie 🌈8mo ago
people still play Die Stämme? :D cant you run the cronjobs through your ready event? then you dont need to login new clients
Osse
Osse8mo ago
yes haha 😄 okay i rewritte the code, i hope it helps 😄 i think, it works ty 😄
Want results from more Discord servers?
Add your server
More Posts