/LGSM_valheim_bot

A dumb bot to manage and probe a Valheim server managed via LGSM

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

LGSM Valheim Bot

A stupid Discord bot to query a Valheim server managed by LGSM.

Credentials, tokens & other sensitive stuff

You should create at root level the file config.json that needs at least the following information

{
    "token": "DISCORD_BOT_TOKEN",
    "server_host": "YOUR_VALHEIM_SERVER_IP",
    "server_port": "YOUR_VALHEIM_SERVER_PORT", // Valheim default is 2457
    "lgsm_user": "LGSM_UNIX_USER", // LGSM default is vhserver
    "lgsm_bin": "LGSM_SERVER_SCRIPT", // LGSM default is ~/vhserver
    "lgsm_config": "LGSM_CONFIG_DIR", // LGSM default is ~/vhserver/lgsm/config-lgsm/vhserver
    "guild_id": "YOUR_GUILD_ID" // optional (put false)
}

Bot Slash commands

  • /status: returns server map name & number of players
  • /details: returns host info & lgsm config. Sensitive information are hidden.
  • /restart: restarts the server
  • /switch_map MAP_NAME: Look for maps in LGSM_CONFIG_DIR, and let you choose which one to launch