// code from goatstore // api: https://store.agi.bd const moment = require("moment-timezone"); const axios = require("axios"); const fs = require("fs"); const path = require("path"); // ===== AUTHOR LOCK ===== const LOCKED_AUTHOR = "MR_FARHAN"; module.exports = { config: { name: "owner", aliases: ["admin", "intro", "contact"], version: "4.0.0", author: "MR_FARHAN", role: 0, countDown: 5, shortDescription: { en: "Owner Information" }, category: "owner" }, onStart: async function ({ api, event, usersData, threadsData, message }) { try { // ===== AUTHOR CHECK (ANTI EDIT) ===== if (module.exports.config.author !== LOCKED_AUTHOR) { return message.reply("โ›” Author modified! This command is disabled."); } // ===== OWNER INFO ===== const ownerName = "๐™ผ๐š.๐™ต๐™ฐ๐š๐™ท๐™ฐ๐™ฝ"; const ownerReligion = "๐™ธ๐š‚๐™ป๐™ฐ๐™ผ"; const ownerRelation = "๐š‚๐™ธ๐™ฝ๐™ถ๐™ป๐™ด"; const ownerAddress = "๐™น๐™ด๐š‚๐š‚๐™พ๐š๐™ด"; const ownerAge = "๐Ÿ๐ŸŽ"; // ===== CONTACT ===== const facebook = "fb.com/MR.MUNNA.220"; const whatsapp = "wa.me/+8801934640061"; const telegram = "t.me/DEVIL_FARHAN_420"; const youtube = "yb.com/@munna-vai-mbs"; // ===== BOT INFO ===== const botName = global.GoatBot?.config?.nickNameBot || "โ”€๊ฏญ๐“†ฉยปโ€Œโ€Œ๐† แึŸ๊ฏญ๐’๐ˆ๐™๐”๐Š๐€๐† แึŸ๊ฏญ๐“†ฉ๐† แ๐๐€๐๐˜๐† แึŸ๊ฏญ๐† แึŸ๊ฏญ๐“†ช"; const prefix = global.GoatBot?.config?.prefix || "/"; const totalCommands = global.GoatBot?.commands?.size || 0; // ===== USERS & GROUPS ===== const allUsers = await usersData.getAll(); const allThreads = await threadsData.getAll(); const totalUsers = allUsers.length; const totalGroups = allThreads.length; // ===== UPTIME ===== const uptime = process.uptime(); const days = Math.floor(uptime / 86400); const hours = Math.floor((uptime % 86400) / 3600); const minutes = Math.floor((uptime % 3600) / 60); const seconds = Math.floor(uptime % 60); const uptimeText = `${days}d ${hours}h ${minutes}m ${seconds}s`; // ===== TIME ===== const now = moment().tz("Asia/Dhaka"); const time = now.format("hh:mm:ss A"); const date = now.format("DD/MM/YYYY"); // ===== CACHE ===== const cacheDir = path.join(__dirname, "cache"); if (!fs.existsSync(cacheDir)) { fs.mkdirSync(cacheDir, { recursive: true }); } const videoPath = path.join(cacheDir, "owner.mp4"); // ===== VIDEO URL ===== const videoUrl = "https://files.catbox.moe/wzosnu.mp4"; // ===== DOWNLOAD VIDEO ===== const response = await axios({ url: videoUrl, method: "GET", responseType: "stream" }); const writer = fs.createWriteStream(videoPath); response.data.pipe(writer); await new Promise((resolve, reject) => { writer.on("finish", resolve); writer.on("error", reject); }); // ===== MESSAGE ===== const msg = ` โ•”โ•โ•โ•โœฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โœฆโ•โ•โ•โ•— โ•‘ ๐Ÿค–ใ€Œ ๐Ž๐–๐๐„๐‘ ๐๐€๐๐„๐‹ ใ€๐Ÿค– โ•‘ โ•šโ•โ•โ•โœฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โœฆโ•โ•โ•โ• โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“ โ”ƒ ๐Ÿ‘‘ ๐™ฝ๐™ฐ๐™ผ๐™ด:ใ€Œ ${ownerName} ใ€ โ”ƒ ๐Ÿ•‹ ๐š๐™ด๐™ป๐™ธ๐™ถ๐™ธ๐™พ๐™ฝ:ใ€Œ ${ownerReligion} ใ€ โ”ƒ ๐Ÿ’ž ๐š๐™ด๐™ป๐™ฐ๐šƒ๐™ธ๐™พ๐™ฝ:ใ€Œ ${ownerRelation} ใ€ โ”ƒ ๐Ÿ  ๐™ฐ๐™ณ๐™ณ๐š๐™ด๐š‚๐š‚:ใ€Œ ${ownerAddress} ใ€ โ”ƒ ๐ŸŽ‚ ๐™ฐ๐™ถ๐™ด:ใ€Œ ${ownerAge} ใ€ โ”ƒ ๐ŸŸข ๐™ฐ๐™ฒ๐šƒ๐™ธ๐š…๐™ด:ใ€Œ 24/7 ใ€ โ”—โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”› โ•ญโ”€โ”€โ”€ ๐Ÿ“ฑ๐—–๐—ข๐—ก๐—ง๐—”๐—–๐—ง ๐— ๐—˜ โ”€โ”€โ”€โ•ฎ โ”‚ ๐ŸŒ โ†“-๐…๐€๐‚๐„๐๐Ž๐Ž๐Š-โ†“ โ”‚ โ””โ”€ ${facebook} โ”‚ ๐Ÿ’ฌ โ†“-๐–๐‡๐€๐“๐€๐๐-โ†“ โ”‚ โ””โ”€ ${whatsapp} โ”‚ โœˆ๏ธ โ†“-๐“๐„๐‹๐„๐†๐‘๐€๐Œ-โ†“ โ”‚ โ””โ”€ ${telegram} โ”‚ โ–ถ๏ธ โ†“-๐˜๐Ž๐”๐“๐”๐๐„-โ†“ โ”‚ โ””โ”€ ${youtube} โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€โ”€โ”€ ๐Ÿค– ๐—•๐—ข๐—ง ๐——๐—˜๐—ง๐—”๐—œ๐—Ÿ๐—ฆ โ”€โ”€โ”€โ•ฎ โ”‚ โšก ๐๐€๐Œ๐„: ${botName} โ”‚ ๐Ÿ‘ฅ ๐”๐’๐„๐‘๐’:ใ€Œ ${totalUsers} ใ€ โ”‚ ๐Ÿ’ฌ ๐†๐‘๐Ž๐”๐:ใ€Œ ${totalGroups} ใ€ โ”‚ ๐Ÿ“ฆ ๐‚๐Œ๐ƒ๐’:ใ€Œ ${totalCommands} ใ€ โ”‚ ๐Ÿ”ฐ ๐๐‘๐„๐…๐ˆ๐—:ใ€Œ ${prefix} ใ€ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€โ”€โ”€โ”€โ”€โ”€ ๐Ÿ“… ๐—ง๐—œ๐— ๐—˜ โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ ๐Ÿ—“๏ธ ๐ƒ๐€๐“๐„: ${date} โ”‚ โฐ ๐“๐ˆ๐Œ๐„: ${time} โ”‚ โณ ๐”๐๐“๐ˆ๐Œ๐„: ${uptimeText} โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•”โ•โ•โ•โœฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โœฆโ•โ•โ•โ•— โ•‘ ใ€Œ ๐“๐‡๐€๐๐Š๐’ ๐…๐Ž๐‘ ๐”๐’๐ˆ๐๐† ใ€ โ•‘ โ•šโ•โ•โ•โœฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โœฆโ•โ•โ•โ• `; await message.reply({ body: msg, attachment: fs.createReadStream(videoPath) }); // ===== DELETE VIDEO ===== setTimeout(() => { if (fs.existsSync(videoPath)) { fs.unlinkSync(videoPath); } }, 10000); } catch (err) { console.log(err); return message.reply("โŒ | Owner command error."); } } };