For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration Guide

This document explains how to edit your config.lua file to set up your Discord bot token and server-specific settings properly.


๐Ÿ“ File: config.lua

Sample Config:

config = {}

config.token = ""  -- Your Discord bot token goes here
config.serverId = "800444740729307177"

config.commandName = "vehicleconfig"  -- Command to open or trigger vehicle config features
config.adminRefreshRoles = "refresh-roles"  -- Admin-only command to refresh someone's roles

config.allowAdminBypass = true  -- If true, users with admin roles can bypass restrictions

config.adminRoles = {
    "800444938793123871"  -- Role IDs that are allowed to use admin commands
}

๐Ÿงพ How to Edit

1. ๐Ÿ” Insert Your Bot Token

Get your token from the Discord Developer Portal:

  • Go to your bot application

  • Navigate to Bot > Token > Click "Copy"

  • Paste it into config.token:

โš ๏ธ Do NOT share this token with anyone!


2. ๐Ÿ†” Set the Server ID

Replace the existing config.serverId with the ID of the Discord server your bot will operate in:

You can right-click your server in Discord (developer mode enabled) to copy the ID.


3. ๐Ÿ” Change Command Names (Optional)

You can customize the slash commands used in Discord:


4. ๐Ÿ‘ฎโ€โ™‚๏ธ Enable or Disable Admin Bypass

This allows users with the defined admin roles to bypass restrictions (like checks or cooldowns):


5. ๐ŸŽ–๏ธ Configure Admin Roles

Replace the role IDs with your server's admin role(s). You can add multiple role IDs:

To get a role ID in Discord:

  • Enable Developer Mode (User Settings > Advanced > Developer Mode)

  • Right-click a role > Copy ID


โœ… Example Final Config


Last updated