From ac97637c77a2b0dd3101b365b37582844661e009 Mon Sep 17 00:00:00 2001 From: evaristeeva22-star Date: Thu, 30 Oct 2025 13:34:12 +0100 Subject: [PATCH 1/4] Update account.dev.txt --- account.dev.txt | 114 ++++++++++++++++++++---------------------------- 1 file changed, 48 insertions(+), 66 deletions(-) diff --git a/account.dev.txt b/account.dev.txt index 04d0d3307..50eed7023 100644 --- a/account.dev.txt +++ b/account.dev.txt @@ -1,66 +1,30 @@ [ { "key": "dbln", - "value": "%7B%2261578962693327%22%3A%22AD23fzmN%22%2C%2261574567202843%22%3A%22tvuctjzU%22%7D", + "value": "%7B%2261574567202843%22%3A%22tMHpYSdM%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": "2025-10-30T12:31:46.179Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "datr", - "value": "2uWnaOrYmWe9sjwD6BWXCmTQ", + "value": "bFgDaUqdxBiLjAbIQRHtad5R", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "sb", - "value": "2uWnaGb2BFi0JW6mvM8OCSMM", + "value": "bFgDacGMSrQKNiXc_OG51C9I", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" - }, - { - "key": "ps_l", - "value": "1", - "domain": "facebook.com", - "path": "/", - "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" - }, - { - "key": "ps_n", - "value": "1", - "domain": "facebook.com", - "path": "/", - "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" - }, - { - "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", - "domain": "facebook.com", - "path": "/", - "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "m_pixel_ratio", @@ -68,8 +32,8 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "wd", @@ -77,8 +41,8 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "c_user", @@ -86,26 +50,26 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "xs", - "value": "11%3Ay6mGwp1fjqRk4w%3A2%3A1761800095%3A-1%3A-1", + "value": "21%3ABrHCe7Ok3v1OKw%3A2%3A1761827301%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": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "fr", - "value": "0bxqr79qORGQJzFpM.AWfLJAaXoapXeK6dzdzBtF4F01dq0sGekmIVB5zVe6XaIS9esjY.Bop-Xa..AAA.0.0.BpAu-n.AWfIdpE8pAqp8ilxaSHPuscejxw", + "value": "0eNmTGxXNqBgpnmLA.AWe_XxPNHqE63lxCKXY3loMT0_aFhL685OsR2BrlixOHW4Br-GM.BpA1hs..AAA.0.0.BpA1nr.AWcsqRZUrEoNWY3izco5W-IVIJU", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "locale", @@ -113,25 +77,43 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { - "key": "fbl_st", - "value": "101218715%3BT%3A29363335", + "key": "pas", + "value": "61574567202843%3AHylwGxc79E", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T04:55:44.331Z", - "lastAccessed": "2025-10-30T04:55:44.331Z" + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" }, { "key": "wl_cbv", - "value": "v2%3Bclient_version%3A2968%3Btimestamp%3A1761800103", + "value": "v2%3Bclient_version%3A2968%3Btimestamp%3A1761827308", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" + }, + { + "key": "fbl_st", + "value": "101036675%3BT%3A29363788", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" + }, + { + "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": "2025-10-30T12:31:46.181Z", + "lastAccessed": "2025-10-30T12:31:46.181Z" } ] From 24bf98cae8c8bd8d6ad16bf6c0c627d74d5a2186 Mon Sep 17 00:00:00 2001 From: evaristeeva22-star Date: Thu, 18 Jun 2026 10:02:37 +0100 Subject: [PATCH 2/4] Update account.dev.txt --- account.dev.txt | 95 ++++++++++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 52 deletions(-) diff --git a/account.dev.txt b/account.dev.txt index 50eed7023..dc7b19840 100644 --- a/account.dev.txt +++ b/account.dev.txt @@ -1,21 +1,12 @@ [ - { - "key": "dbln", - "value": "%7B%2261574567202843%22%3A%22tMHpYSdM%22%7D", - "domain": "facebook.com", - "path": "/login/device-based/", - "hostOnly": false, - "creation": "2025-10-30T12:31:46.179Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" - }, { "key": "datr", "value": "bFgDaUqdxBiLjAbIQRHtad5R", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.093Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { "key": "sb", @@ -23,97 +14,97 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "m_pixel_ratio", - "value": "2.75", + "key": "vpd", + "value": "v1%3B654x393x2.75", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "wd", - "value": "393x786", + "key": "ps_l", + "value": "1", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "c_user", - "value": "61574567202843", + "key": "ps_n", + "value": "1", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "xs", - "value": "21%3ABrHCe7Ok3v1OKw%3A2%3A1761827301%3A-1%3A-1", + "key": "c_user", + "value": "61577402116587", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "fr", - "value": "0eNmTGxXNqBgpnmLA.AWe_XxPNHqE63lxCKXY3loMT0_aFhL685OsR2BrlixOHW4Br-GM.BpA1hs..AAA.0.0.BpA1nr.AWcsqRZUrEoNWY3izco5W-IVIJU", + "key": "xs", + "value": "28%3AbY9SJNvVmgT7_w%3A2%3A1764731497%3A-1%3A-1", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "locale", - "value": "en_US", + "key": "pas", + "value": "61574567202843%3AHylwGxc79E%2C61577402116587%3A2CvJJA43J1", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "pas", - "value": "61574567202843%3AHylwGxc79E", + "key": "locale", + "value": "fr_FR", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "wl_cbv", - "value": "v2%3Bclient_version%3A2968%3Btimestamp%3A1761827308", + "key": "fr", + "value": "0eNmTGxXNqBgpnmLA.AWczPe7AR-AR2kSSrKanY1uANU7gmAFcFahhErDOfm09D6AzPp4.BpA1hs..AAA.0.0.BqM7PA.AWfkq4v_1y5n1TXo2IhHUXQw8FA", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { "key": "fbl_st", - "value": "101036675%3BT%3A29363788", + "value": "101236606%3BT%3A29696220", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" }, { - "key": "vpd", - "value": "v1%3B654x393x2.75", + "key": "wl_cbv", + "value": "v2%3Bclient_version%3A3192%3Btimestamp%3A1781773248", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2025-10-30T12:31:46.181Z", - "lastAccessed": "2025-10-30T12:31:46.181Z" + "creation": "2026-06-18T09:01:02.099Z", + "lastAccessed": "2026-06-18T09:01:02.099Z" } ] From f645b11b2573ba70588f89f120a9a8a2654384f3 Mon Sep 17 00:00:00 2001 From: evaristeeva22-star Date: Sat, 27 Jun 2026 06:22:20 +0100 Subject: [PATCH 3/4] Update account.dev.txt --- account.dev.txt | 105 ++++++++++++++++++++++++++++++------------------ 1 file changed, 66 insertions(+), 39 deletions(-) diff --git a/account.dev.txt b/account.dev.txt index dc7b19840..baf369636 100644 --- a/account.dev.txt +++ b/account.dev.txt @@ -1,12 +1,12 @@ [ { - "key": "datr", - "value": "bFgDaUqdxBiLjAbIQRHtad5R", + "key": "dbln", + "value": "%7B%2261591633041394%22%3A%22jiINbnaK%22%7D", "domain": "facebook.com", - "path": "/", + "path": "/login/device-based/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.093Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.071Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "sb", @@ -14,8 +14,8 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "vpd", @@ -23,8 +23,8 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "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": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "ps_n", @@ -41,70 +41,97 @@ "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "c_user", - "value": "61577402116587", + "key": "locale", + "value": "fr_FR", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "xs", - "value": "28%3AbY9SJNvVmgT7_w%3A2%3A1764731497%3A-1%3A-1", + "key": "m_pixel_ratio", + "value": "2.75", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "pas", - "value": "61574567202843%3AHylwGxc79E%2C61577402116587%3A2CvJJA43J1", + "key": "wd", + "value": "393x786", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "locale", - "value": "fr_FR", + "key": "c_user", + "value": "61591633041394", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { - "key": "fr", - "value": "0eNmTGxXNqBgpnmLA.AWczPe7AR-AR2kSSrKanY1uANU7gmAFcFahhErDOfm09D6AzPp4.BpA1hs..AAA.0.0.BqM7PA.AWfkq4v_1y5n1TXo2IhHUXQw8FA", + "key": "datr", + "value": "41s_apqqnlCnl65t6k094vR-", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" + }, + { + "key": "xs", + "value": "48%3A4hdEfOVFKugZnw%3A2%3A1782537189%3A-1%3A-1", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" + }, + { + "key": "pas", + "value": "61574567202843%3AHylwGxc79E%2C61577402116587%3A2CvJJA43J1%2C61591633041394%3AKT6Kvm6o5G", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "fbl_st", - "value": "101236606%3BT%3A29696220", + "value": "101225138%3BT%3A29708953", "domain": "facebook.com", "path": "/", "hostOnly": false, - "creation": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" }, { "key": "wl_cbv", - "value": "v2%3Bclient_version%3A3192%3Btimestamp%3A1781773248", + "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": "2026-06-18T09:01:02.099Z", - "lastAccessed": "2026-06-18T09:01:02.099Z" + "creation": "2026-06-27T05:20:40.076Z", + "lastAccessed": "2026-06-27T05:20:40.076Z" } ] From f571510928c73061226d262b19e8f7dce1e7531d Mon Sep 17 00:00:00 2001 From: evaristeeva22-star Date: Sat, 27 Jun 2026 12:40:34 +0100 Subject: [PATCH 4/4] Delete scripts/cmds/panneladmin.js --- scripts/cmds/panneladmin.js | 318 ------------------------------------ 1 file changed, 318 deletions(-) delete mode 100644 scripts/cmds/panneladmin.js 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`."); - } -};