// code from goatstore // api: https://store.agi.bd const moment = require("moment-timezone"); const bannedWords = [ "chudi", "baler bot", "chutiya bot", "bot bokasoda", "bot tor boss re chudi", "বালের বট", "ভোদার বট", "ধোনের বট", "তোর বস রে চুদি", "শাহাদাৎ যে চুদি", "sahadat mc", "mc Sahu", "bokachoda sahu", "fuck you", "sex", "sexy", "hedar bot", "বট চুদি", "crazy bot", "bc bot", "khankir polar bot", "bot tor heda", "হেড়ার বট", "bot paylac rồi", "con bot lòn", "cmm bot", "clap bot", "bot ncc", "bot oc", "bot óc", "bot óc chó", "cc bot", "bot tiki", "lozz bottt", "lol bot", "loz bot", "xxx", "boder bot", "bot lon", "x video", "bot sudi", "bot sida", "bot fake", "decode file de", "mc bot", "bad bot", "bot cau" ]; module.exports = { config: { name: "fixspam", version: "1.0.0", author: "𝐂𝐘𝐁𝐄𝐑 ☢️_𖣘 -𝐁𝐎𝐓 ⚠️ 𝑻𝑬𝑨𝑴_ ☢️", countDown: 0, role: 0, description: { en: "Auto-ban users who send abusive words to the bot (no prefix)" }, category: "noprefix", guide: { en: "No prefix needed, works automatically" } }, onStart: async function ({ message }) { return message.reply( "( \\_/)\n" + "( •_•)\n" + "// >🧠\n\n" + "Give me your brain and put it in your head.\n" + "Do you know if it's the Noprefix command??" ); }, onChat: async function ({ event, api, usersData, message }) { const { threadID, body, senderID } = event; if (!body) return; if (senderID === api.getCurrentUserID()) return; const admins = global.GoatBot?.config?.adminBot || []; // বট অ্যাডমিনকে ব্যান করা হবে না if (admins.includes(String(senderID))) return; // পুরো মেসেজ হুবহু ব্যান-শব্দের সাথে মিললে (ছোট/বড় হাতের পার্থক্য ছাড়া) const text = body.trim().toLowerCase(); const foundWord = bannedWords.find(word => text === word.toLowerCase()); if (!foundWord) return; const userName = await usersData.getName(senderID); const currentTime = moment.tz("Asia/Dhaka").format("HH:mm:ss DD/MM/YYYY"); console.log(`${userName} - chui bot: ${foundWord}`); // GoatBot v2 এর ব্যান সিস্টেমে ব্যান করা await usersData.set( senderID, { status: true, reason: foundWord, date: currentTime }, "banned" ); await message.send( `» Notice from Owner MEHEDI «\n\n${userName}, You are stupid for cursing bots so bots automatically banned you from the system`, threadID ); // সব বট অ্যাডমিনকে জানানো for (const adminID of admins) { api.sendMessage( `=== Bot Notification ===\n\n` + `🆘 Sinner: ${userName}\n` + `🔰 Uid: ${senderID}\n` + `😥 Sent: ${foundWord}\n\n` + `Banned from the system`, adminID ); } } };