Skip to content

Installation

Prérequis

Créer le bot Discord

  1. Discord Developer Portal → "New Application"
  2. Section Bot :
    • Copier le TokenDISCORD_TOKEN
    • Activer Message Content Intent + Server Members Intent
  3. Section General Information :
    • Copier l'Application IDDISCORD_CLIENT_ID
  4. Section OAuth2 → URL Generator :
    • Scopes : bot + applications.commands
    • Permissions : Administrator
    • Ouvrir l'URL pour inviter le bot
  5. Sur Discord, clic droit sur ton serveur → "Copier l'identifiant" → DISCORD_GUILD_ID

Installer le projet

bash
git clone git@github.com:alxgb5/igbbot.git
cd igbbot
npm install
cp .env.example .env

Lancer la base de données

bash
docker compose up -d           # PostgreSQL + Adminer
npm run db:generate            # Génère le client Prisma
npm run db:migrate             # Crée les tables

Adminer

Interface DB web disponible sur http://localhost:8080