Bluesheep33 / Palcord

A Discord bot for Palworld servers
MIT License
1 stars 0 forks source link

parse info from palserver console #3

Closed Bluesheep33 closed 3 months ago

Bluesheep33 commented 3 months ago

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.

Bluesheep33 commented 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

Bluesheep33 commented 3 months ago

watcher should only send newest lines to handler. handler should parse data and send it to anyone subscribed (how do I do this?)