discord bot to run lgsm server commands for valheim. uses node, pm2 and gamedig
- install node & npm on your server
- log into your server as
vhserver
- clone this repo
cd ./val-bot
npm i
- create a discord bot, add to your server & copy the token to paste into the next command
TOKEN=PutYourDiscordBotTokenHere npm run start
- message
!help
for list of commands
npm run start
: run val-bot (note: pm2 will cache the token so it is only needed once, delete the process if you need to update the token)npm run stop
: stop val-botnpm run reload
: stop & start val-botnpm run status
: check recent pm2 logsnpm run list
: list current pm2 processes