- Cliquez ici OVL-MD-FORK.
- Cliquez ici SESSION-ID.
- Remarque : Conservez cette SESSION-ID en sécurité, car elle est nécessaire pour connecter le bot à votre compte WhatsApp.
- Cliquez ici pour créer: DATA-BASE
- Si vous en avez déjà une c'est plus la peine d'en créer
- Lien de la Base de données public:
postgresql://postgres.qnjvgxwyncnsbpfxwrbq:ovlmdmdpasse@aws-0-eu-central-1.pooler.supabase.com:6543/postgres
- Creer une compte: compte-render.
- Deployer: Deployer sur Render
- Creer un compte: compte-koyeb
- Deployer: Deployer sur Koyeb
- Créer un compte: compte-panel
- Deployer:
- Étape 1: creer un serveur
- Étape 2: créé une fichier
index.js
sur le serveur - Étape 3: Démarrer le bot
- Fichier a coller dans l'index:
const { writeFileSync, existsSync, mkdirSync } = require('fs');
const { spawnSync } = require('child_process');
const path = require('path');
const env_f
7CF5
ile = ``; //Entrée votre fichier .env ici
if (!env_file.trim()) {
console.error("Aucune donnée de configuration trouvée dans 'env_file'. Veuillez remplir vos informations dans le code.");
process.exit(1);
}
const envPath = path.join(__dirname, 'ovl', '.env');
function runCommand(command, args, options = {}) {
const result = spawnSync(command, args, { stdio: 'inherit', ...options });
if (result.error) {
throw new Error(`Échec de l'exécution de "${command} ${args.join(' ')}" : ${result.error.message}`);
}
if (result.status !== 0) {
throw new Error(`Commande "${command} ${args.join(' ')}" retournée avec le code ${result.status}`);
}
}
if (!existsSync('ovl')) {
console.log("Clonage du bot en cours...");
runCommand('git', ['clone', 'https://github.com/Ainz-fk/OVL-MD.git', 'ovl']);
console.log("Clonage terminé, installation des dépendances...");
runCommand('npm', ['install'], { cwd: 'ovl' });
console.log("Dépendances installées avec succès !");
}
if (!existsSync(envPath)) {
try {
const envDir = path.dirname(envPath);
if (!existsSync(envDir)) {
mkdirSync(envDir, { recursive: true });
console.log(`Répertoire créé: ${envDir}`);
}
writeFileSync(envPath, env_file.trim());
console.log("Fichier .env créé avec succès !");
} catch (error) {
console.error(`Erreur lors de la création du fichier .env : ${error.message}`);
process.exit(1);
}
}
console.log("Démarrage du bot...");
runCommand('npm', ['run', 'Ovl'], { cwd: 'ovl' });
console.log('Le bot est en cours d\'exécution...');
Exemple de fichier .env:
PREFIXE=
NOM_OWNER=Ainz
NUMERO_OWNER=226xxxxxxxx
MODE=public
MENU=https://i.ibb.co/ynx9QcZ/image.jpg
SESSION_ID="ovl"
DATABASE=postgresql://postgres.qnjvgxwyncnsbpfxwrbq:ovlmdmdpasse@aws-0-eu-central-1.pooler.supabase.com:6543/postgres
LEVEL_UP=non
STICKER_PACK_NAME=Wa-sticker
STICKER_AUTHOR_NAME=OVL-MD
ANTIDELETE=off/pm/status/gc/all
RENDER_API_KEY=
DL_STATUS=on/off
ANTI_VUE_UNIQUE=on/off
LIKE_STATUS=on/off
PRESENCE=off/enregistre/ecrit/enligne
LECTURE_STATUS=on/off
Ce projet est sous la licence MIT. Consultez le fichier LICENSE pour plus de détails.