Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AleXD0009 authored Sep 15, 2024
1 parent 5caaa69 commit 236c711
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions plugins/downloader-pinterest.js
Original file line number Diff line number Diff line change
@@ -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 *<url pin>*'];
handler.tags = ['downloader'];
handler.command = ['pinterestdl', 'pindl'];
handler.register = true;

export default handler;

0 comments on commit 236c711

Please sign in to comment.