diff --git a/account.dev.txt b/account.dev.txt index 04d0d3307..baf369636 100644 --- a/account.dev.txt +++ b/account.dev.txt @@ -1,30 +1,30 @@ [ { "key": "dbln", - "value": "%7B%2261578962693327%22%3A%22AD23fzmN%22%2C%2261574567202843%22%3A%22tvuctjzU%22%7D", + "value": "%7B%2261591633041394%22%3A%22jiINbnaK%22%7D", "domain": "facebook.com", "path": "/login/device-based/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.330Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.071Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "datr", - "value": "2uWnaOrYmWe9sjwD6BWXCmTQ", + "key": "sb", + "value": "bFgDacGMSrQKNiXc_OG51C9I", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "sb", - "value": "2uWnaGb2BFi0JW6mvM8OCSMM", + "key": "vpd", + "value": "v1%3B654x393x2.75", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "ps_l", @@ -32,8 +32,8 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "ps_n", @@ -41,26 +41,17 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "pas", - "value": "61578962693327%3AiicsJsSSvd%2C61574567202843%3Az4zoDqkCin", - "domain": "facebook.com", - "path": "/", - "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" - }, - { - "key": "vpd", - "value": "v1%3B654x393x2.75", + "key": "locale", + "value": "fr_FR", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "m_pixel_ratio", @@ -68,8 +59,8 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "wd", @@ -77,61 +68,70 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "c_user", - "value": "61574567202843", + "value": "61591633041394", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "xs", - "value": "11%3Ay6mGwp1fjqRk4w%3A2%3A1761800095%3A-1%3A-1", + "key": "datr", + "value": "41s_apqqnlCnl65t6k094vR-", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "fr", - "value": "0bxqr79qORGQJzFpM.AWfLJAaXoapXeK6dzdzBtF4F01dq0sGekmIVB5zVe6XaIS9esjY.Bop-Xa..AAA.0.0.BpAu-n.AWfIdpE8pAqp8ilxaSHPuscejxw", + "key": "xs", + "value": "48%3A4hdEfOVFKugZnw%3A2%3A1782537189%3A-1%3A-1", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "locale", - "value": "en_US", + "key": "pas", + "value": "61574567202843%3AHylwGxc79E%2C61577402116587%3A2CvJJA43J1%2C61591633041394%3AKT6Kvm6o5G", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "fbl_st", - "value": "101218715%3BT%3A29363335", + "value": "101225138%3BT%3A29708953", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "wl_cbv", - "value": "v2%3Bclient_version%3A2968%3Btimestamp%3A1761800103", + "value": "v2%3Bclient_version%3A3198%3Btimestamp%3A1782537197", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" + }, + { + "key": "fr", + "value": "0eNmTGxXNqBgpnmLA.AWec6c_HvbhPiptkdLOqIaXsF6zbwlYYxmNF6MmaCRNLirZIk9g.BpA1hs..AAA.0.0.BqP119.AWfxXw4739JB9QzUvYgH2DdzJFs", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" } ] diff --git a/scripts/cmds/panneladmin.js b/scripts/cmds/panneladmin.js deleted file mode 100644 index 6903a4872..000000000 --- a/scripts/cmds/panneladmin.js +++ /dev/null @@ -1,318 +0,0 @@ -// 🌐 Cache temporaire pour stocker les groupes par utilisateur -const groupesCache = {}; - -module.exports = { - config: { - name: "pannel", - version: "2.4", - author: "Evariste", - role: 0, - shortDescription: "Panel admin secret", - longDescription: "AccĂšs admin pour Evariste", - category: "admin", - guide: { - fr: "„pannel [action]" - } - }, - - onStart: async function ({ message, event, usersData, threadsData, args, api }) { - const adminIDs = ["100093009031914", "61571572433426", ""]; - const senderID = event.senderID; - - if (!adminIDs.includes(senderID)) { - return message.reply("⛔ dĂ©solĂ©e la commande que vous venez de mettre n'existe plus 😌 notre maĂźtre la supprime et nous ignorons pourquoi. Merci bye."); - } - - const action = args[0]; - - if (!action) { - return message.reply( - `👑 **PANEL ADMIN - Evariste**\nChoisis une action :\n\n` + - `1. 💰 Voir le solde d'un utilisateur\n` + - `2. ➕ Ajouter de l'argent Ă  un utilisateur\n` + - `3. 🔁 RĂ©initialiser les streaks 'motrapide'\n` + - `4. 🏆 Voir le top 5 des plus riches\n` + - `5. 📣 Envoyer une annonce Ă  tous les groupes\n` + - `6. ➖ Retirer de l'argent Ă  un utilisateur\n` + - `7. 📋 panel list - lister les commandes\n` + - `8. đŸ‘„ panel groupes - voir les groupes\n` + - `9. đŸšȘ panel quitte [numĂ©ro] - faire quitter le bot d’un groupe\n` + - `10. đŸš« panel block/unblock/blocklist\n` + - `11. 📹 diffuse [numĂ©ro] [message/media] - envoyer Ă  un groupe prĂ©cis\n` + - `12. 📹 diffuseall [message/media] - envoyer Ă  tous les groupes` - ); - } - - if (action === "list") { - return message.reply( - `📋 **Commandes Admin Disponibles** :\n\n` + - `‱ pannel solde [uid]\n` + - `‱ pannel add [uid] [montant]\n` + - `‱ pannel remove [uid] [montant]\n` + - `‱ pannel annonce [message]\n` + - `‱ pannel groupe\n` + - `‱ pannel groupes\n` + - `‱ pannel groupes refresh\n` + - `‱ pannel groupes add [numĂ©ro]\n` + - `‱ pannel quitte [numĂ©ro]\n` + - `‱ pannel block [uid]\n` + - `‱ pannel unblock [uid]\n` + - `‱ pannel blocklist\n` + - `‱ pannel top\n` + - `‱ pannel reset\n` + - `‱ diffuse [numĂ©ro] [message/media]\n` + - `‱ diffuseall [message/media]` - ); - } - - if (action === "groupe" || action === "groupes") { - if (args[1] === "add") { - const index = parseInt(args[2]) - 1; - const groupes = groupesCache[senderID]; - - if (!groupes || groupes.length === 0) { - return message.reply("❌ Tu dois d'abord exĂ©cuter `pannel groupes` pour charger la liste."); - } - - if (isNaN(index) || index < 0 || index >= groupes.length) { - return message.reply("❌ NumĂ©ro invalide. VĂ©rifie la liste avec `pannel groupes`."); - } - - const threadID = groupes[index].threadID; - - try { - await api.addUserToGroup(senderID, threadID); - return message.reply(`✅ Tu as Ă©tĂ© ajoutĂ© au groupe : ${groupes[index].threadName}`); - } catch (e) { - return message.reply("❌ Impossible d'ajouter l'utilisateur au groupe. Peut-ĂȘtre que le bot n'est pas admin ?"); - } - } - - if (args[1] === "refresh") { - message.reply("🔄 Mise Ă  jour de la liste des groupes actifs, un instant..."); - } - - const allThreads = await threadsData.getAll(); - const groupesValides = []; - - for (const t of allThreads) { - if (!t.threadID || !t.threadName) continue; - try { - const info = await api.getThreadInfo(t.threadID); - if (info && info.participantIDs.includes(api.getCurrentUserID())) { - groupesValides.push({ - threadID: t.threadID, - threadName: t.threadName - }); - } - } catch (e) { - // Le bot n'est plus dans ce groupe - } - } - - groupesCache[senderID] = groupesValides; - - if (groupesValides.length === 0) { - return message.reply("❌ Aucun groupe actif trouvĂ© oĂč le bot est encore membre."); - } - - const liste = groupesValides.map((g, i) => `${i + 1}. ${g.threadName}`).join("\n"); - return message.reply(`đŸ‘„ **Liste des groupes actifs :**\n\n${liste}\n\n➕ \`pannel groupes add [numĂ©ro]\`\nđŸšȘ \`pannel quitte [numĂ©ro]\`\n🔁 \`pannel groupes refresh\``); - } - - if (action === "quitte") { - const index = parseInt(args[1]) - 1; - const groupes = groupesCache[senderID]; - - if (!groupes || groupes.length === 0) { - return message.reply("❌ Tu dois d'abord exĂ©cuter `pannel groupes` pour charger la liste."); - } - - if (isNaN(index) || index < 0 || index >= groupes.length) { - return message.reply("❌ NumĂ©ro invalide. VĂ©rifie la liste avec `pannel groupes`."); - } - - const threadID = groupes[index].threadID; - const threadName = groupes[index].threadName; - - try { - await api.removeUserFromGroup(api.getCurrentUserID(), threadID); - return message.reply(`đŸšȘ Le bot a quittĂ© le groupe : ${threadName}`); - } catch (e) { - return message.reply("❌ Erreur : impossible de quitter ce groupe. Le bot est-il admin ?"); - } - } - - if (action === "block") { - const uid = args[1]; - if (!uid) return message.reply("❌ Utilisation : pannel block [uid]"); - await usersData.set(uid, true, "blocked"); - return message.reply(`đŸš« L'utilisateur ${uid} est maintenant bloquĂ©.`); - } - - if (action === "unblock") { - const uid = args[1]; - if (!uid) return message.reply("❌ Utilisation : pannel unblock [uid]"); - await usersData.set(uid, false, "blocked"); - return message.reply(`✅ L'utilisateur ${uid} est dĂ©bloquĂ©.`); - } - - if (action === "blocklist") { - const users = await usersData.getAll(["blocked", "name"]); - const blocked = users.filter(u => u.blocked === true); - - if (blocked.length === 0) { - return message.reply("✅ Aucun utilisateur n'est actuellement bloquĂ©."); - } - - const list = blocked.map((u, i) => `${i + 1}. ${u.name || "Inconnu"} (${u.userID})`).join("\n"); - return message.reply(`đŸš« Utilisateurs bloquĂ©s :\n\n${list}`); - } - - if (action === "annonce") { - const text = args.slice(1).join(" "); - if (!text) return message.reply("❌ Tu dois Ă©crire un message aprĂšs `pannel annonce`."); - const allThreads = await threadsData.getAll(); - const groups = allThreads.filter(t => t.threadID && t.threadName); - for (const group of groups) { - try { - api.sendMessage(`📱 Annonce admin :\n${text}`, group.threadID); - } catch (e) {} - } - return message.reply(`✅ Annonce envoyĂ©e dans **${groups.length}** groupes.`); - } - - if (action === "solde") { - const uid = args[1]; - if (!uid) return message.reply("❌ Fournis l'UID de l'utilisateur."); - const money = await usersData.get(uid, "money") || 0; - return message.reply(`💰 Solde de ${uid} : ${money} $`); - } - - if (action === "add") { - const uid = args[1]; - const montant = parseInt(args[2]); - if (!uid || isNaN(montant)) return message.reply("❌ Utilisation : pannel add [uid] [montant]"); - const current = await usersData.get(uid, "money") || 0; - await usersData.set(uid, current + montant, "money"); - return message.reply(`✅ ${montant} $ ajoutĂ©s Ă  l'utilisateur ${uid}.`); - } - - if (action === "remove") { - const uid = args[1]; - const montant = parseInt(args[2]); - if (!uid || isNaN(montant)) return message.reply("❌ Utilisation : pannel remove [uid] [montant]"); - const current = await usersData.get(uid, "money") || 0; - await usersData.set(uid, Math.max(0, current - montant), "money"); - return message.reply(`✅ ${montant} $ retirĂ©s de l'utilisateur ${uid}.`); - } - - if (action === "top") { - const users = await usersData.getAll(["money", "name"]); - const top = users - .filter(u => u.money).sort((a, b) => b.money - a.money) - .slice(0, 5); - - const topMsg = top.map((u, i) => `#${i + 1}. ${u.name} – ${u.money} $`).join("\n"); - return message.reply(`🏆 **Top 5 utilisateurs les plus riches :**\n${topMsg}`); - } - - if (action === "reset") { - const all = await usersData.getAll(["motrapide"]); - for (const user of all) { - if (user.motrapide) { - await usersData.set(user.userID, 0, "motrapide"); - } - } - return message.reply("🔁 Tous les streaks 'motrapide' ont Ă©tĂ© rĂ©initialisĂ©s."); - } - - // --- NOUVEAUTÉS --- - - // Diffuser dans un groupe prĂ©cis via son numĂ©ro dans la liste chargĂ©e - if (action === "diffuse") { - const index = parseInt(args[1]) - 1; - const groupes = groupesCache[senderID]; - const text = args.slice(2).join(" "); - const attachments = (event.messageReply?.attachments || event.attachments) || []; - - if (!groupes || groupes.length === 0) { - return message.reply("❌ Tu dois d'abord exĂ©cuter `pannel groupes` pour charger la liste."); - } - - if (isNaN(index) || index < 0 || index >= groupes.length) { - return message.reply("❌ NumĂ©ro invalide. VĂ©rifie la liste avec `pannel groupes`."); - } - - if (!text && attachments.length === 0) { - return message.reply("❌ Tu dois fournir un message ou un mĂ©dia Ă  diffuser."); - } - - const threadID = groupes[index].threadID; - try { - if (attachments.length > 0) { - for (const attach of attachments) { - const file = await api.getAttachment(attach.id); - await api.sendMessage({ body: text, attachment: file }, threadID); - } - } else { - await api.sendMessage(text, threadID); - } - return message.reply(`✅ Message diffusĂ© au groupe : ${groupes[index].threadName}`); - } catch (e) { - return message.reply("❌ Erreur lors de l'envoi du message. Le bot est-il toujours dans ce groupe ?"); - } - } - - // Diffuser dans tous les groupes oĂč le bot est membre - if (action === "diffuseall") { - const text = args.slice(1).join(" "); - const attachments = (event.messageReply?.attachments || event.attachments) || []; - - if (!text && attachments.length === 0) { - return message.reply("❌ Tu dois fournir un message ou un mĂ©dia Ă  diffuser."); - } - - const allThreads = await threadsData.getAll(); - const groupesValides = []; - - for (const t of allThreads) { - if (!t.threadID || !t.threadName) continue; - try { - const info = await api.getThreadInfo(t.threadID); - if (info && info.participantIDs.includes(api.getCurrentUserID())) { - groupesValides.push({ - threadID: t.threadID, - threadName: t.threadName - }); - } - } catch (e) { - // Ignorer si bot plus dans ce groupe - } - } - - if (groupesValides.length === 0) { - return message.reply("❌ Aucun groupe actif trouvĂ© pour diffuser le message."); - } - - let count = 0; - for (const groupe of groupesValides) { - try { - if (attachments.length > 0) { - for (const attach of attachments) { - const file = await api.getAttachment(attach.id); - await api.sendMessage({ body: text, attachment: file }, groupe.threadID); - } - } else { - await api.sendMessage(text, groupe.threadID); - } - count++; - } catch {} - } - - return message.reply(`✅ Message diffusĂ© dans **${count}** groupes.`); - } - - return message.reply("❌ Commande inconnue. Essaie `pannel list`."); - } -};