Skip to content

Configuration

Philippe Robert edited this page May 8, 2024 · 11 revisions

UPDATED FOR VERSION: 0.0.1 (stable)

To change the bot configuration, you need to edit the .env file.

If you don't have any .env file, you can edit sample.env and rename it to .env

Bot Options

BOT_LANGUAGE

Define the language used by the bot.

Possible Value:

  • en
  • fr

Default: BOT_LANGUAGE=fr

LANGUAGE_DIR

Define where the translations are stored

e.g.: /home/zomboidbot/PzPy/locales

Default: LANGUAGE_DIR=""

SHOW_TIMESTAMP

Show timestamp on discord

Possible Value:

  • yes
  • no

Default: SHOW_TIMESTAMP=no

EMBED_CHAT

Embed for chat

Possible Value:

  • yes
  • no

Default: EMBED_CHAT=no

DISCORD_TOKEN

The token for your discord bot

Default: DISCORD_TOKEN=""

CHANNEL

The id for the channel you want notifications and chat. If this is a channel name it will use the first channel it finds matching that name, or it can be the discord channel ID which you can get by right clicking on the channel -> copy ID or from the channel link, e.g: https://discord.com/channels/<server_id>/<channel_id>

Default: CHANNEL=""

The notifications for the above channel

JOINS=True DISCONNECTS=True DEATHS=True PERKS=True CREATECHAR=True

ADMIN_LOGS

Set to "True" if you want Admin logs to be sent to the channel below. These logs give info about what players are doing and could be useful for server admins

Default: ADMIN_LOGS="False"

ADMIN_CHANNEL

The id for the channel that you want admin/other logs to be sent to

Default: ADMIN_CHANNEL=""

RCON_HOST

Host to connect to rcon

Default: RCON_HOST="localhost"

RCON_PASSWORD

The password for rcon on the server (used to relay chat from discord to game)

Default: RCON_PASSWORD

RCON_PORT

The port to use for the rcon connection, default is 27015

Default: RCON_PORT=27015

LOGS_PATH

Path to Project Zomboid Logs folder Leave empty to try default paths e.g. /home/zserver/Zomboid/Logs

Default: LOGS_PATH=""

MAPS_PATH

Path to the project zomboid maps folder leave empty to try the default paths

Default: MAPS_PATH=""

SAVES_PATH

Path to the project zomboid saves folder leave empty to try the default paths e.g. /home/zserver/Zomboid/Saves/Multiplayer/servertest

Default: SAVES_PATH=""