Ly-sec / PalBot

PalBot - Whitelist, RCON, Server management Palworld Discoord Bot
20 stars 3 forks source link

Cant get the bot to run linux #21

Closed xblitz151 closed 9 months ago

xblitz151 commented 9 months ago

Ive installed many bots like this on windows but not on Linux. So i installed the repo, created my discord bot and invited with admin permissions. Changed the config file with my token and other info. When running node . its returning with this error but not sure why? Also my node version is 12.22.9

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/root/PalBot/node_modules/discord.js/src/index.js:6:22) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

xblitz151 commented 9 months ago

Ive also done on my linux box sudo update/upgrade etc.

Peeraboon commented 9 months ago

I also got this problem. Changing nodejs to version 21 fix this.

xblitz151 commented 9 months ago

Do you know if there is a way to add extra ports to the one IP or would i have to run a bot for each pal server? Being that commas end each line in the config so would something like this work? "rcon_port": 1111;1234;4444, "rcon_port": 1111-44444, or something?

xblitz151 commented 9 months ago

I also got this problem. Changing nodejs to version 21 fix this.

Yea seemed to help. Still got issues tho as i posted in the issues area.