CLI configuration
CLIOn this page
These environment variables configure the runtime, module loader, and updater. They are read when the process starts.
| Variable | Purpose |
|---|---|
DISCORD_TOKEN | Bot token for client:login and shard children. |
MYLUA_MODULE_PATH | Override on-disk module root. Disk modules win over the embedded copies. |
MYLUA_LOG | Log level (debug, info, and other native levels). |
DISCORDLUA_UPDATE_API | Override the version manifest URL. |
DISCORDLUA_SHARD_ID / DISCORDLUA_SHARD_COUNT | Identify shard fields for child processes. |
Example
$env:DISCORD_TOKEN = "your-bot-token"
dislua run bot.lua