Script / Code to make my Discord Bot auto-restart after a crash/shutdown

Status
This thread has been locked.

Coursings

Feedback score
0
Posts
1
Reactions
0
Resources
0
Hello, now I don't know exactly how you'd do this, I know it's either a script or some sort of code that needs to be written. But essentially I need something that will automatically run my Discord bot if for whatever reason it crashes, my dedi restarts, or whatever the case may be. I run a lot of things on my Discord server with my bot and every time it crashes people can't do certain commands and the timers stop on Giveaways, etc etc... and even though the bot works it sometimes crashes for a reason that is never the same next time it happens.. but that's besides the point. Please add me on Discord @ Coursings#8843. I will pay :)
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Nathan

Discord Bot Developer
Supreme
Feedback score
50
Posts
372
Reactions
329
Resources
2
Nothing to do with the code, find out how to do this with whatever host you use. For me I use google cloud and you can find out how to do this on google cloud here
 

Potters

Server Manager
Supreme
Feedback score
11
Posts
230
Reactions
132
Resources
0
Just use Nodemon, it's the widely recognised standard.
 
Status
This thread has been locked.
Top