// code from goatstore // api: https://store.agi.bd const axios = require("axios"); const fs = require("fs-extra"); module.exports = { config: { name: "sohan", aliases: ["admin", "owner", "creator", "dev"], version: "3.2", author: "Sohan Islam", countDown: 3, role: 0, shortDescription: "Show Admin Information", longDescription: "Displays detailed information about the bot admin", category: "info", guide: { en: "{pn}" } }, onStart: async function ({ api, event }) { const { threadID, messageID } = event; try { const message = ` 👑┌───────────────⭓ │ ADMIN INFO ├─────────────── │ 👤 Name : Sohan Islam │ 🚹 Gender : Male │ 💝 Status : mingle │ 🎂 Age : 21+ │ 🕌 Religion : Islam │ 🎓 Education : 2nd Semester │ 🏡 Address : Narayanganj, Bangladesh └───────────────⭓ 🌟┌───────────────⭓ │ INTRODUCTION ├─────────────── │ 🕌 Assalamu Alaikum │ 🤍 Welcome To My Profile │ 💖 Love Everyone │ ✨ Respect Everyone │ 🌸 Stay Happy │ 🕊️ Keep Smiling │ 🤲 Alhamdulillah For Everything └───────────────⭓ 📘 Facebook: https://www.facebook.com/forsinu 🤖 Bot Admin : Sohan Islam ❤️ Thanks For Using My Bot ❤️ `; const imgURL = "https://graph.facebook.com/61590705266796/picture?width=720&height=720&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662"; const cacheDir = __dirname + "/cache"; const imgPath = cacheDir + "/sohan_admin.jpg"; if (!fs.existsSync(cacheDir)) fs.mkdirSync(cacheDir, { recursive: true }); const response = await axios({ method: "GET", url: imgURL, responseType: "arraybuffer", timeout: 15000, headers: { "User-Agent": "Mozilla/5.0" } }); fs.writeFileSync(imgPath, Buffer.from(response.data)); await api.sendMessage( { body: message, attachment: fs.createReadStream(imgPath) }, threadID, () => { try { if (fs.existsSync(imgPath)) fs.unlinkSync(imgPath); } catch (e) { console.log(e); } }, messageID ); api.setMessageReaction("👑", messageID, () => {}, true); } catch (error) { console.error("Admin Command Error:", error); api.sendMessage( `❌ Error Loading Admin Information\n\n${error.message}`, threadID, messageID ); api.setMessageReaction("❌", messageID, () => {}, true); } } };