Files
EllyDiscordBot/.env.example
2026-05-28 23:46:40 +00:00

25 lines
997 B
Plaintext

# Elly Discord Bot — Environment Variables
# =========================================
#
# Copy this file to `.env` and fill in real values. Both `@elly/core` and
# `@elly/bot` validate their environment with Zod at boot — missing or
# malformed values will abort the process before any side effects occur.
# ---- Shared (both crates) ----
# Controls log formatting and other dev-vs-prod behaviour.
NODE_ENV=development
# Optional: override the level from [logging] in config.toml.
# One of: debug | info | warn | error | fatal
# LOG_LEVEL=debug
# ---- @elly/bot ----
# Discord bot token. Get it from https://discord.com/developers/applications.
DISCORD_TOKEN=your_discord_bot_token_here
# ---- IPC (shared between @elly/core and @elly/bot) ----
# Shared secret used to authenticate Bot -> Core HTTP requests.
# Must be the same value in both processes. Use a long random string.
# Generate one with: `openssl rand -hex 32`
IPC_TOKEN=change-me-to-a-long-random-secret-of-at-least-16-chars