Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions account.dev.txt
Original file line number Diff line number Diff line change
@@ -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"
}
]
1 change: 0 additions & 1 deletion account.txt

This file was deleted.

4 changes: 2 additions & 2 deletions config.json → config.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"ignoreCommand": []
},
"adminBot": [
"",
"100093009031914",
""
],
"whiteListMode": {
"enable": false,
"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",
Expand Down
2 changes: 1 addition & 1 deletion configCommands.json → configCommands.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"allow": true
}
}
}
}
74 changes: 74 additions & 0 deletions scripts/cmds/00ai.js
Original file line number Diff line number Diff line change
@@ -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);
}
}
}
44 changes: 44 additions & 0 deletions scripts/cmds/00antiout.js
Original file line number Diff line number Diff line change
@@ -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);
}
}
}
}
}
2 changes: 1 addition & 1 deletion scripts/cmds/callad.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ module.exports = {
}
}
}
};
};
7 changes: 5 additions & 2 deletions scripts/events/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} 😊`
}
},

Expand Down