Closed Bluesheep33 closed 4 months ago
Don't do this. The goal is to integrate bot with palworld server (as subfolder in palworld server folder) and startup bot together with the server by using a custom startup file for the palworld server (#31). Moreover, palworld server should be able to handle crashes automatically and be a self-healing service (#28)
If the server were to stop or crash due to some unknown reason, the user should be able to run a command in discord that makes the server restart. No admin privileges required to start the command, only condition is that the api doesn't respond to some GET request (meaning the server is indeed offline).
prerequisite: somehow allow communication between the discord bot and the palserver to execute shell commands User executes command -> discord bot script sends request to execute
./start-server.sh
-> daemon listener somehow receives this request and executes it