// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "rate", aliases: ["rating"], version: "1.0", author: "Sakib", countDown: 3, role: 0, shortDescription: "Random rating", longDescription: "Give a random percentage rating to a person or thing", category: "fun", guide: "{pn} [name]" }, onStart: async function ({ event, message, args }) { if (!args.length) { return message.reply("😅 যার rating জানতে চাও, তার নাম লিখো!\n\nউদাহরণ: /rate Sakib"); } const name = args.join(" "); const percent = Math.floor(Math.random() * 101); let comment; if (percent >= 90) { comment = "🔥 একদম অসাধারণ!"; } else if (percent >= 70) { comment = "😍 অনেক ভালো!"; } else if (percent >= 50) { comment = "😎 মোটামুটি ভালো!"; } else if (percent >= 30) { comment = "😂 আরেকটু চেষ্টা দরকার!"; } else { comment = "🤣 আজকে ভাগ্য খারাপ!"; } await message.reply( `╭─────── ✦ ───────╮\n` + ` ⭐ RATING ⭐\n` + `╰─────── ✦ ───────╯\n\n` + `👤 Name: ${name}\n` + `📊 Rating: ${percent}%\n` + `💬 ${comment}` ); } };