mirror of
https://github.com/arthur-pbty/LazyBot.git
synced 2026-06-03 23:23:33 +02:00
feat: Mise à jour du README et ajout d'un fichier .env.example pour la configuration
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
CLIENT_ID=VOTRE_BOT_CLIENT_ID
|
||||
CLIENT_SECRET=VOTRE_BOT_CLIENT_SECRET
|
||||
REDIRECT_URI=https://lazybot.arthurp.fr/auth/discord/callback
|
||||
PORT=3000
|
||||
BOT_TOKEN=VOTRE_BOT_TOKEN
|
||||
SESSION_SECRET=UN_SECRET_LONG_ET_UNIQUE
|
||||
DB_PATH=database.sqlite
|
||||
OWNER=VOTRE_ID_UTILISATEUR
|
||||
URL=https://lazybot.arthurp.fr
|
||||
@@ -140,7 +140,4 @@ dist
|
||||
|
||||
# Vite logs files
|
||||
vite.config.js.timestamp-*
|
||||
<<<<<<< HEAD
|
||||
vite.config.ts.timestamp-*
|
||||
=======
|
||||
vite.config.ts.timestamp-*
|
||||
@@ -1,49 +1,67 @@
|
||||
# LazyBot - Discord Bot
|
||||
# LazyBot
|
||||
|
||||
Bot Discord configurable via un dashboard web pour gérer :
|
||||
- Rôles automatiques (`autorole-newuser` et `autorole-vocal`)
|
||||
- Messages de bienvenue et d’au revoir
|
||||
- Sélection de salons vocaux à exclure
|
||||
- Multi-serveurs avec contrôle admin
|
||||
LazyBot est un bot Discord multi-serveurs avec dashboard web pour configurer facilement votre serveur.
|
||||
|
||||
---
|
||||
Site officiel: https://lazybot.arthurp.fr
|
||||
|
||||
## Fonctionnalités
|
||||
|
||||
- Commandes générales, économie, niveaux, modération et administration
|
||||
- Gestion d'autoroles (nouveaux membres et vocal)
|
||||
- Messages de bienvenue et d'au revoir personnalisables
|
||||
- Configuration anti-raid, logs, panels de roles, salons statistiques
|
||||
- Dashboard web pour piloter les options serveur
|
||||
|
||||
## Stack
|
||||
|
||||
- Node.js
|
||||
- Discord.js
|
||||
- SQLite
|
||||
- Docker et Docker Compose
|
||||
|
||||
## Installation
|
||||
|
||||
1. Cloner le projet :
|
||||
1. Cloner le projet
|
||||
|
||||
```bash
|
||||
git clone https://github.com/arthur-pbty/LazyBot.git
|
||||
cd mon-bot-discord
|
||||
````
|
||||
cd lazybot
|
||||
```
|
||||
|
||||
3. Créer un fichier `.env` :
|
||||
2. Creer votre fichier d'environnement
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
3. Renseigner les variables dans `.env`
|
||||
|
||||
```env
|
||||
CLIENT_ID=VOTRE_BOT_CLIENT_ID
|
||||
CLIENT_SECRET=VOTRE_BOT_CLIENT_SECRET
|
||||
REDIRECT_URI=https://your_domaine.com/auth/discord/callback
|
||||
REDIRECT_URI=https://lazybot.arthurp.fr/auth/discord/callback
|
||||
PORT=3000
|
||||
BOT_TOKEN=VOTRE_TOKEN_BOT
|
||||
SESSION_SECRET=un_secret_aleatoire_pour_les_sessions
|
||||
SESSION_SECRET=UN_SECRET_LONG_ET_UNIQUE
|
||||
DB_PATH=database.sqlite
|
||||
OWNER=VOTRE_ID_UTILISATEUR
|
||||
URL=https://ton-domaine.com
|
||||
URL=https://lazybot.arthurp.fr
|
||||
```
|
||||
|
||||
4. Lancer le serveur :
|
||||
4. Lancer avec Docker
|
||||
|
||||
```bash
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
* Serveur web : `http://localhost:3000`
|
||||
* Le bot se connecte automatiquement aux serveurs où il est invité.
|
||||
Le dashboard est ensuite disponible sur `http://localhost:3000`.
|
||||
|
||||
---
|
||||
## Securite avant publication
|
||||
|
||||
## Fonctionnalités clés
|
||||
- Ne jamais versionner `.env`
|
||||
- Verifier que `.vscode/` reste ignore (ex: `sftp.json`)
|
||||
- Eviter de publier des tokens, secrets ou cles privees
|
||||
|
||||
* Autoroles pour nouveaux membres et salons vocaux
|
||||
* Messages de bienvenue et d’au revoir personnalisables
|
||||
* Dashboard web pour configurer facilement chaque serveur
|
||||
* Pré-sélection automatique options anciennement remplit
|
||||
## Licence
|
||||
|
||||
Projet prive par defaut. Ajouter une licence explicite si publication open source.
|
||||
@@ -5,7 +5,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="LazyBot est un bot Discord puissant avec système de niveaux, économie, messages personnalisés et bien plus encore.">
|
||||
<link rel="stylesheet" href="/index.css">
|
||||
<!-- Preconnect CDN for avatars to reduce latency -->
|
||||
<link rel="preconnect" href="https://cdn.discordapp.com" crossorigin>
|
||||
|
||||
<!-- Preload CSS and apply via onload to reduce render-blocking (noscript fallback) -->
|
||||
<link rel="preload" href="/index.css" as="style" onload="this.rel='stylesheet'">
|
||||
<noscript><link rel="stylesheet" href="/index.css"></noscript>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navigation -->
|
||||
|
||||
Reference in New Issue
Block a user