Getting Started
Welcome to VeloKit, the high-velocity scaffolding engine for Discord bots. This guide will help you forge your first project in minutes.
Prerequisites
Before running the VeloKit forge, ensure you have the following installed:
- Node.js (v20.0.0 or higher)
- pnpm, npm, or yarn
- A Discord Bot Token (obtainable from the Discord Developer Portal)
The One-Command Setup
VeloKit is designed to be run without installation. Simply use npx to start the forge:
bash
npx velokitFirst Steps after Forging
Once the forge is complete, follow these steps to bring your bot online:
- Enter the directory:bash
cd your-bot-name - Configure Environment: Open the
.envfile and verify yourDISCORD_TOKEN. If you selected a database, add yourMONGODB_URI. - Install Dependencies:bash
pnpm install - Launch Development Mode:bash
pnpm run dev
Project Structure
Your forged bot follows a clean, handler-based architecture:
/src/index.ts: The entry point and client initialization./src/commands/: Where your slash and prefix commands live./src/events/: Discord event listeners (ready, messageCreate, etc.)./src/utils/logger.ts: The premium Sploov Logger utility./src/config.ts: Automated environment validation.