Discord Bot
My bot keeps stopping
The most common causes and how to diagnose them.
If your bot stops unexpectedly the cause is usually one of three: hitting the memory limit, an uncaught error, or being rate limited by Discord.
Memory limit
A process that exceeds your plan's RAM limit is stopped automatically. If you see a memory error in the logs you need to move up a plan. Bots on large servers consume much more memory than expected because of member caching.
Uncaught errors
An unhandled promise rejection terminates the process. Adding the two listeners below makes your bot log the error instead of crashing.
process.on("unhandledRejection", (error) => {
console.error("Yakalanmamis hata:", error);
});
process.on("uncaughtException", (error) => {
console.error("Beklenmeyen hata:", error);
});What to do
- Open the live log in the panel and read the last lines before it stopped
- Write down the exact error, do not guess
- If it is a memory error, upgrade the plan
- If it is a code error, fix it and upload again
- If you cannot solve it, open a support request and include the log output

