// code from goatstore // api: https://store.agi.bd const fs = require("fs-extra"); const request = require("request"); module.exports = { config: { name: "info", version: "2.0", author: "โœจ Eren Yeh โœจ (Modified by Ariyan)", shortDescription: "Display user info with video.", longDescription: "Stylized Ariyan bot info with uptime.", category: "INFO", guide: { en: "[user]", }, }, onStart: async function ({ api, event }) { // Uptime formatter const sec = process.uptime(); const hrs = Math.floor(sec / 3600); const mins = Math.floor((sec % 3600) / 60); const secs = Math.floor(sec % 60); const botUptime = `${hrs}๐— ${mins}๐—† ${secs}๐—Œ`; // Stylized message const messageBody = ` . โ”Œโ”€โ”€โ”€โ”€โ˜…โ”€โ”€โ”€โ”€โ” ๐ŸŒฑ Nirob ๐–ก๐—ˆอข๐— ๐–จ๐—‡๐–ฟ๐—ˆ โ””โ”€โ”€โ”€โ”€โ˜…โ”€โ”€โ”€โ”€โ”˜ ๐Ÿ‘ค อŸ๐—จอŸ๐˜€อŸ๐—ฒอŸ๐—ฟอŸ อŸ๐—œอŸ๐—ปอŸ๐—ณอŸ๐—ˆอŸ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ—“๐–ญอŸ๐–บอŸ๐—†อŸ๐–พอŸ : Nirobใ€”kakashiใ€• โ”‚ โ—’ ๐– อŸ๐—€อŸ๐–พอŸ ; ๐Ÿฃ๐Ÿซ+ โ”‚ โ—“๐–ซอŸ๐—ˆอŸ๐–ผอŸ๐–บอŸ๐—อŸ๐—‚อŸ๐—ˆอŸ๐—‡อŸ ; munshiganj แœŠ โ”‚ โ—’ ๐– อŸ๐–ปอŸ๐—ˆอŸ๐—ŽอŸ๐—อŸ : ๐–ก๐—ˆ๐—อŸ & โ”‚ ๐–ฉ๐–บ๐—๐–บ๐–ฒ๐–ผ๐—‹๐—‚๐—‰๐— ๐–ซ๐—ˆ๐—๐–พ๐—‹ ๐–จ โ”‚ ๐–บ๐—…๐—๐–บ๐—’๐—Œ ๐–ซ๐–พ๐–บอข๐—‹๐—‡๐—‚๐—‡๐—€ (๐ŸŒณ) โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ๐Ÿค– ๐—•๐—ผ๐˜ ๐——๐—ฒ๐˜๐—ฎ๐—ถ๐—น๐˜€: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ—“ bot ๐–ญอŸ๐–บอŸ๐—†อŸ๐–พอŸ : Mitsuri โœจ๐ŸŒฑ โ”‚ โ—’ ๐–ฎ๐–ถ๐–ญ๐–ค๐–ฑ : Nirob โ”‚ โ—“๐–ตอŸ๐–พอŸ๐—‹๐—Œ๐—‚๐—ˆ๐—‡ : ๐Ÿฃ.5 โ”‚ โ—’ ๐—จ๐—ฝ๐˜๐—ถ๐—บ๐—ฒ : ${botUptime} โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ใ€ฝ๏ธ ๐—ง๐—ต๐—ฎ๐—ป๐—ธ ๐˜†๐—ผ๐˜‚ ๐—ณ๐—ผ๐—ฟ ๐˜‚๐˜€๐—ถ๐—ป๐—ด โœจ! `; // Optional video (can skip if not needed) const videoLinks = ["https://i.imgur.com/sBOY4lM.mp4"]; const videoPaths = []; for (let i = 0; i < videoLinks.length; i++) { const videoPath = `${__dirname}/cache/info_vid${i}.mp4`; await new Promise((res, rej) => { request(videoLinks[i]) .pipe(fs.createWriteStream(videoPath)) .on("close", () => { videoPaths.push(videoPath); res(); }) .on("error", rej); }); } // Send the message api.sendMessage({ body: messageBody, attachment: videoPaths.map(path => fs.createReadStream(path)) }, event.threadID, () => { videoPaths.forEach(path => fs.unlinkSync(path)); }, event.messageID); } };