Installation

1. Get the code and install dependencies

bash
git clone https://github.com/your-repo/ticket-nexus.git
cd ticket-nexus
npm install

2. Create your .env

Copy .env.example to .env and fill in at least:

env
DISCORD_TOKEN=your-bot-token
CLIENT_ID=your-application-id
DB_TYPE=sqlite

Keep the token in .env only — it is gitignored. Every other variable is covered in Environment Variables.

3. Register the slash commands

bash
npm run deploy

Re-run this whenever commands change (for example after updating to a version that adds a command option).

4. Start the bot

bash
npm start

5. Invite the bot

Invite the bot to your server with the permissions listed in Requirements, then continue to the Quick Start.