Closed Bluesheep33 closed 3 months ago
update: start server with ~/Steam/steamapps/common/PalServer/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS 2>&1 | tee -a ~/Steam/steamapps/common/PalServer/console-log.txt
and then use fs library to watch for changes in console-log. then parse data
watcher should only send newest lines to handler. handler should parse data and send it to anyone subscribed (how do I do this?)
when running the PalServer.sh file, the shell gives information about the server: who joins/leaves and text messages that get sent by players. this is not (yet) supported in the palserver api, but I want my bot to receive these updates as well, so that i can update a player list whenever someone joins, and log everything that's being done/said on the palworld server in a discord channel.