Skip to content

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

License

Notifications You must be signed in to change notification settings

pirpyn/LGSM_valheim_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks