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);
});
}
};