From 236c7111a418a3b4de084fb3875dac05253ef121 Mon Sep 17 00:00:00 2001 From: JTxs <145930757+AleXD0009@users.noreply.github.com> Date: Sun, 15 Sep 2024 20:33:46 -0300 Subject: [PATCH] . --- plugins/downloader-pinterest.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugins/downloader-pinterest.js diff --git a/plugins/downloader-pinterest.js b/plugins/downloader-pinterest.js new file mode 100644 index 0000000..4f36c85 --- /dev/null +++ b/plugins/downloader-pinterest.js @@ -0,0 +1,29 @@ +import Starlights from '@StarlightsTeam/Scraper'; + +let handler = async (m, { conn, args, usedPrefix, command }) => { +if (!args[0]) return conn.reply(m.chat,`🚩 Ingrese un enlace de Pinterest\n\nEjemplo:\n> *${usedPrefix + command}* https://ar.pinterest.com/pin/588142032613788991/`, m); + +await m.react('🕓'); +try { +let { dl_url, quality, size, duration, url } = await Starlights.pinterestdl(args[0]); + +let txt = '`乂 P I N T E R E S T - D O W N L O A D E R`\n\n' +txt += ` ✩ *Calidad* : ${quality}\n`; +txt += ` ✩ *Tamaño* : ${size}\n`; +txt += ` ✩ *Duracion* : ${duration}\n`; +txt += ` ✩ *Url* : ${url}\n`; + + +await conn.sendMessage(m.chat, { video: { url: dl_url }, caption: txt, mimetype: 'video/mp4', fileName: `pinterest.mp4`}, {quoted: m }) +await m.react('✅'); +} catch { +await m.react('✖️'); +} +}; + +handler.help = ['pinterestdl **']; +handler.tags = ['downloader']; +handler.command = ['pinterestdl', 'pindl']; +handler.register = true; + +export default handler;