DiscordLua
discorddiscord
v1.2.4
Install

CLI configuration

CLI
On this page

These environment variables configure the runtime, module loader, and updater. They are read when the process starts.

VariablePurpose
DISCORD_TOKENBot token for client:login and shard children.
MYLUA_MODULE_PATHOverride on-disk module root. Disk modules win over the embedded copies.
MYLUA_LOGLog level (debug, info, and other native levels).
DISCORDLUA_UPDATE_APIOverride the version manifest URL.
DISCORDLUA_SHARD_ID / DISCORDLUA_SHARD_COUNTIdentify shard fields for child processes.

Example

shell
$env:DISCORD_TOKEN = "your-bot-token"
dislua run bot.lua
Search Ctrl K Navigate Open Esc