Installation
Prérequis
- Node.js 22+
- PostgreSQL 16 (via Docker recommandé)
- Un bot Discord créé sur le portail développeur
Créer le bot Discord
- Discord Developer Portal → "New Application"
- Section Bot :
- Copier le Token →
DISCORD_TOKEN - Activer Message Content Intent + Server Members Intent
- Copier le Token →
- Section General Information :
- Copier l'Application ID →
DISCORD_CLIENT_ID
- Copier l'Application ID →
- Section OAuth2 → URL Generator :
- Scopes :
bot+applications.commands - Permissions :
Administrator - Ouvrir l'URL pour inviter le bot
- Scopes :
- 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 .envLancer 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 tablesAdminer
Interface DB web disponible sur http://localhost:8080
