// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "msg", aliases: ["maidulreply", "autoreply"], version: "1.0", author: "Maidul", countDown: 0, role: 0, shortDescription: "Maidul Auto Reply", longDescription: "Auto reply when trigger words are found anywhere in a message", category: "box chat", guide: { en: "{p}msg" } }, onStart: async function ({ message }) { return message.reply( "✅ Maidul Auto Reply System is Active 🟢" ); }, onChat: async function ({ api, event, message }) { const raw = event.body ? event.body.trim() : ""; if (!raw) return; try { // Lowercase + extra spaces normalize const text = raw .toLowerCase() .replace(/\s+/g, " ") .trim(); // বিভিন্ন ধরনের message const triggers = [ // English "kemon asis", "kmn asis", "kmn acis", "kemon acho", "kmn acho", "kemon acis", // Bangla "কেমন আসিছ", "কেমন আছিস", "কেমন আছো", "কেমন আছ" ]; /* * Message-এর যেকোনো জায়গায় trigger থাকলে match করবে। * * Example: * "ভাই অনেকদিন পর কথা হচ্ছে kemon asis" * "আমি জানতে চাচ্ছিলাম তুমি কেমন আছো" * "অনেক কথার মাঝখানে kmn acho তারপর আবার কথা" */ const matched = triggers.some(trigger => text.includes(trigger) ); // Trigger না থাকলে কিছু করবে না if (!matched) return; // Auto Reply return message.reply( '⎯⎯“Maidul-Always Vloihhh thakehhh Eidahh Abr Blar Lagehh-))💥😎🫰' ); } catch (err) { console.error("MSG Auto Reply Error:", err.message); } } };