Crashes
If your process exits, the server goes offline. Crash detection restarts it automatically: it is on by default. When the process ends unexpectedly, it is restarted after a few seconds. If it crashes repeatedly within a short time, crash detection stops trying and leaves it off so you notice; fix the cause and start again.
Reconnects belong in your code
Discord disconnects gateways now and then. discord.js and discord.py reconnect on their own, as long as you do not catch the error and process.exit(). Do not wrap the client in a loop that restarts it; let the library handle it.
Memory leaks
A bot that grows to its RAM limit over days gets killed and restarted. A nightly restart hides the symptom: Schedules → Quick add → Daily restart (every morning at 05:00). Better: find the leak (usually caches or event listeners added in a loop).
Watching it
The console shows your bot's output live. For alerts when it goes down, a simple approach is a status message your bot posts every hour in a private channel. If the message stops, you know. Kowalski can also tell you the current state and read the last crash.
Kowalski, the assistant in your dashboard, reads your server's log and fixes most things on request. For everything else there is the ticket system.
