diff --git a/account.dev.txt b/account.dev.txt new file mode 100644 index 000000000..813793e7f --- /dev/null +++ b/account.dev.txt @@ -0,0 +1,129 @@ + +[ + { + "key": "dbln", + "value": "%7B%2261555776220826%22%3A%22UjED42FG%22%7D", + "domain": "facebook.com", + "path": "/login/device-based/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.253Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "datr", + "value": "vqr4Z06azjEsXMjRDyN9XEUv", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "sb", + "value": "vqr4ZwzYpLdXlY5lgLtw1r96", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "locale", + "value": "fr_FR", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "ps_l", + "value": "1", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "ps_n", + "value": "1", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "vpd", + "value": "v1%3B654x393x2.75", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "c_user", + "value": "61555776220826", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "fr", + "value": "0WiB3PuLM0LXZhxAf.AWeE6jktherMt46fxaQ466qLpRd3ILnAXTcQSghu-yMAyRXnyDs.Bn-Kq-..AAA.0.0.Bn-OZm.AWfY06CLexQFQpA4FbtSdgIJF3A", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "xs", + "value": "35%3APQThuO5ASZPg6g%3A2%3A1744365158%3A-1%3A7715", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "wd", + "value": "393x654", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "fbl_st", + "value": "101327848%3BT%3A29073031", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "wl_cbv", + "value": "v2%3Bclient_version%3A2785%3Btimestamp%3A1744381871", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + }, + { + "key": "ar_debug", + "value": "1", + "domain": "facebook.com", + "path": "/", + "hostOnly": false, + "creation": "2025-04-11T14:33:16.266Z", + "lastAccessed": "2025-04-11T14:33:16.266Z" + } +] diff --git a/account.txt b/account.txt deleted file mode 100644 index d3f5a12fa..000000000 --- a/account.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/config.json b/config.dev.json similarity index 98% rename from config.json rename to config.dev.json index 61abc0ff8..592ff70e2 100644 --- a/config.json +++ b/config.dev.json @@ -17,7 +17,7 @@ "ignoreCommand": [] }, "adminBot": [ - "", + "100093009031914", "" ], "whiteListMode": { @@ -25,7 +25,7 @@ "whiteListIds": [], "notes": "if you enable this feature, only the ids in the whiteListIds section can use the bot" }, - "nickNameBot": "Your_Bot_Name", + "nickNameBot": "π„π•π€π‘πˆπ’π“π„ ππŽπ“πŸ€–", "prefix": "/", "database": { "type": "sqlite", diff --git a/configCommands.json b/configCommands.dev.json similarity index 99% rename from configCommands.json rename to configCommands.dev.json index a4559be6b..792599802 100644 --- a/configCommands.json +++ b/configCommands.dev.json @@ -36,4 +36,4 @@ "allow": true } } -} \ No newline at end of file +} diff --git a/scripts/cmds/00ai.js b/scripts/cmds/00ai.js new file mode 100644 index 000000000..c4aaf83d4 --- /dev/null +++ b/scripts/cmds/00ai.js @@ -0,0 +1,74 @@ +const axios = require('axios'); + +const fonts = { + + mathsans: { + a: "𝖺", b: "𝖻", c: "𝖼", d: "𝖽", e: "𝖾", f: "𝖿", g: "𝗀", h: "𝗁", i: "𝗂", + j: "𝗃", k: "𝗄", l: "𝗅", m: "𝗆", n: "𝗇", o: "π—ˆ", p: "𝗉", q: "π—Š", r: "𝗋", + s: "π—Œ", t: "𝗍", u: "π—Ž", v: "𝗏", w: "𝗐", x: "𝗑", y: "𝗒", z: "𝗓", + A: "𝗔", B: "𝗕", C: "𝗖", D: "𝗗", E: "π—˜", F: "𝗙", G: "π—š", H: "𝗛", I: "π—œ", + J: "𝗝", K: "π—ž", L: "π—Ÿ", M: "𝗠", N: "𝗑", O: "𝗒", P: "𝗣", Q: "𝗀", R: "π—₯", + S: "𝗦", T: "𝗧", U: "𝗨", V: "𝗩", W: "π—ͺ", X: "𝗫", Y: "𝗬", Z: "𝗭" + } +}; +const stickers = [ + "254594546003916", "254595732670464", "254593389337365", + "37117808696806", "254597316003639", "254598806003490", + "254596219337082", "2379537642070973", "2379545095403561", + "2379551785402892", "254597059336998" +]; +const rolePlay = "quand tu rΓ©pond Γ  cette question ajoutes des emojis convenable :\n\n"; + +const Prefixes = [ + 'salut', + 'ai', + 'mitama', + 'Evariste' +]; + +module.exports = { + config: { + name: "ask", + version: 1.0, + author: "π„π―πšπ«π’π¬π­πž", + longDescription: "AI", + category: "ai", + guide: { + en: "{p} questions", + }, + }, + onStart: async function () {}, + onChat: async function ({ api, event, args, message }) { + try { + + const prefix = Prefixes.find((p) => event.body && event.body.toLowerCase().startsWith(p)); + if (!prefix) { + return; // Invalid prefix, ignore the command + } + const prompt = event.body.substring(prefix.length).trim(); + if (!prompt) { + const randomSticker = stickers[Math.floor(Math.random() * stickers.length)]; + await api.sendMessage({ sticker: randomSticker }, event.threadID); +api.setMessageReaction("πŸ“š", event.messageID, () => {}, true); + return; + } + const senderID = event.senderID; + const senderInfo = await api.getUserInfo([senderID]); + const senderName = senderInfo[senderID].name; + const response = await axios.get(`https://sandipbaruwal.onrender.com/gemini?prompt=${encodeURIComponent(rolePlay + prompt)}`); + const answer = `πŸ“š π„π•π€π‘πˆπ’π“π„ πŸ“š :\n\n${response.data.answer} `; +api.setMessageReaction("🌱", event.messageID, () => {}, true); + + //apply const font to each letter in the answer + let formattedAnswer = ""; + for (let letter of answer) { + formattedAnswer += letter in fonts.mathsans ? fonts.mathsans[letter] : letter; + } + + await message.reply(formattedAnswer); + + } catch (error) { + console.error("Error:", error.message); + } + } + } diff --git a/scripts/cmds/00antiout.js b/scripts/cmds/00antiout.js new file mode 100644 index 000000000..c30e5168e --- /dev/null +++ b/scripts/cmds/00antiout.js @@ -0,0 +1,44 @@ +module.exports = { + config: { + name: "antiout", + version: "1.0", + author: "ChatGPT", + role: 1, // admin only + shortDescription: "EmpΓͺche les membres de quitter", + longDescription: "Active ou dΓ©sactive la protection anti-sortie du groupe", + category: "group", + guide: { + en: "{pn} on/off" + } + }, + + onStart: async function ({ message, event, args, threadsData }) { + const threadID = event.threadID; + const status = args[0]; + + if (status !== "on" && status !== "off") { + return message.reply("Utilisation : antiout on / off"); + } + + await threadsData.set(threadID, status === "on", "settings.antiout"); + return message.reply(`Antiout a Γ©tΓ© ${status === "on" ? "activΓ©" : "dΓ©sactivΓ©"} avec succΓ¨s.`); + }, + + onEvent: async function ({ event, threadsData, api }) { + if (event.logMessageType === "log:unsubscribe") { + const isEnabled = await threadsData.get(event.threadID, "settings.antiout"); + if (!isEnabled) return; + + const leftUserID = event.logMessageData.leftParticipantFbId; + const botID = api.getCurrentUserID(); + + if (leftUserID !== botID) { + try { + await api.addUserToGroup(leftUserID, event.threadID); + } catch (err) { + console.error("Erreur lors de la rΓ©insertion :", err); + } + } + } + } +} diff --git a/scripts/cmds/callad.js b/scripts/cmds/callad.js index eaa631787..49025c055 100644 --- a/scripts/cmds/callad.js +++ b/scripts/cmds/callad.js @@ -188,4 +188,4 @@ module.exports = { } } } -}; \ No newline at end of file +}; diff --git a/scripts/events/welcome.js b/scripts/events/welcome.js index 93953eb25..014e0c1ae 100644 --- a/scripts/events/welcome.js +++ b/scripts/events/welcome.js @@ -26,10 +26,13 @@ module.exports = { session2: "noon", session3: "afternoon", session4: "evening", - welcomeMessage: "Thank you for inviting me to the group!\nBot prefix: %1\nTo view the list of commands, please enter: %1help", + welcomeMessage: "merci de m'avoir ajoutΓ© dans ce groupe!\nBot prefix: %1\npour me poser une question dites ai suivi de la question et pour avoir mes fonctions taper: %1help", multiple1: "you", multiple2: "you guys", - defaultWelcomeMessage: `Hello {userName}.\nWelcome {multiple} to the chat group: {boxName}\nHave a nice {session} 😊` + defaultWelcomeMessage: `salut {userName}.\nBienvenue {multiple} dans le groupe ! +On est ravi de t’avoir parmi nous ! +PrΓ©pare-toi Γ  vivre de bons moments ensemble ! +Bienvenue Γ  bord !: {boxName}\nHave a nice {session} 😊` } },