← back to browse
goat command

intro

Owner information with video

0
views
0
likes
0
installs
raw source
const fs = require("fs-extra");
const request = require("request");
const path = require("path");

module.exports = {
    config: {
        name: "intro",
        version: "1.4.0",
        author: "๐—”๐—ฟ๐—ถ๐˜†๐—ฎ๐—ป ๐—ฏ๐—ฏ'๐˜‡",
        role: 0,
        shortDescription: "Owner information with video",
        category: "intro",
        guide: { en: "owner" }
    },

    onStart: async function ({ api, event }) {
        const ownerText = `โ•ญโ”€ ๐Ÿ‘‘ Oแดกษดแด‡ส€ Iษดา“แด ๐Ÿ‘‘ โ”€โ•ฎ
โ”‚ ๐Ÿ‘ค Nแด€แดแด‡ : ไบ—^โ _^๐—”_๐—ฅ_๐—œ_๐—ฌ_๐—”_โ ๐—ก^_^ ๐๐'๐™ โœฟแญ„
โ”‚ ๐Ÿงธ Nษชแด„แด‹ : AruuuH
โ”‚ ๐ŸŽ‚ Aษขแด‡ : 19+
โ”‚ ๐Ÿ’˜ Rแด‡สŸแด€แด›ษชแดษด : Married
โ”‚ ๐ŸŽ“ Pส€แดา“แด‡ssษชแดษด : Business
โ”‚ ๐Ÿ“š Eแด…แดœแด„แด€แด›ษชแดษด : chudling pong
โ”‚ ๐Ÿก Lแดแด„แด€แด›ษชแดษด : Dhaka keraniganj
โ”œโ”€ ๐Ÿ”— Cแดษดแด›แด€แด„แด› โ”€โ•ฎ
โ”‚ ๐Ÿ“˜ Facebook : https://facebook.com/61582149885357
โ”‚ ๐Ÿ’ฌ messenger : m.me/aruuhbbz
โ”‚ ๐Ÿ“ž WhatsApp : wa.me/01704471566
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
\n๐Ÿ”ฅ "Throughout heaven and earth, I alone am the honored one" ๐Ÿ”ฅ`;

        const cacheDir = path.join(__dirname, "cache");
        const videoPath = path.join(cacheDir, "owner.mp4"); // .jpg er jaygay .mp4
        
        if (!fs.existsSync(cacheDir)) fs.mkdirSync(cacheDir);

        // Tor video link ekhane boshaise
        const videoLink = "https://files.catbox.moe/722foy.mp4";

        const send = () => {
            api.sendMessage(
                { 
                    body: ownerText, 
                    attachment: fs.createReadStream(videoPath) 
                },
                event.threadID,
                () => fs.unlinkSync(videoPath), // send er por file delete kore dibe
                event.messageID
            );
        };

        request(encodeURI(videoLink))
            .pipe(fs.createWriteStream(videoPath))
            .on("close", send)
            .on("error", (err) => {
                api.sendMessage("โŒ Video download korte problem: " + err.message, event.threadID, event.messageID);
            });
    }
};

View raw file