Scarlett
Scarlett Setup
Install Scarlett, create its Discord application, import the database, configure IDs, and start the bot.
Quick start#
- Extract Scarlett into a private directory on the target host.
- Run
npm installin the extracted directory. - Create the Discord application, enable Server Members Intent and Message Content Intent, then copy the bot token and Application ID.
- Open
config.jsand replace everyYOUR_placeholder. - Configure guild, channel, role, owner, link, and optional FiveM values.
- Create a MySQL or MariaDB database and import
install.sql. - Enter the SQL hostname, user, password, and database name.
- Start Scarlett and confirm the database and Discord logins succeed.
Preferred
npm install
npm startDirect entry file
node src/index.jsDiscord setup#
Enable Developer Mode in Discord under User Settings → Advanced. Right-click the user, server, role, channel, or category and choose Copy ID. IDs are numeric values; do not enter a username, role name, channel mention, or invite URL where an ID is required.