forked from xIKRATOSx/Shizu-Bot-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdownloader-mediafire.js
22 lines (21 loc) Β· 1.49 KB
/
downloader-mediafire.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { mediafiredl } from '@bochilteam/scraper'
let handler = async (m, { conn, args, usedPrefix, command }) => {
if (!args[0]) throw `*[βπππ
πβ] πΈπ½πΆππ΄ππ΄ ππ½ π΄π½π»π°π²π΄ π
π°π»πΈπ³πΎ π³π΄ πΌπ΄π³πΈπ°π΅πΈππ΄, π΄πΉπ΄πΌπΏπ»πΎ: ${usedPrefix + command} https://www.mediafire.com/file/pbabuzyc7i8ord5/TheMystic-Bot-MD-master_%25285%2529.zip/file*`
try {
let res = await mediafiredl(args[0])
let { url, url2, filename, ext, aploud, filesize, filesizeH } = await res
let caption = `
*π π½πΎπΌπ±ππ΄:* ${filename}
*π πΏπ΄ππΎ:* ${filesizeH}
*π ππΈπΏπΎ:* ${ext}
*β³ π΄ππΏπ΄ππ΄ π΄π½ π»πΎ πππ΄ π΄π½π
πΈπΎ ππ π°ππ²π·πΈπ
πΎ. . . .*
`.trim()
m.reply(caption)
await conn.sendFile(m.chat, url, filename, '', m, null, { mimetype: ext, asDocument: true })
} catch {
await m.reply('*[βπππ
πβ] π΄πππΎπ, πΏπΎπ π΅π°π
πΎπ π
ππ΄π»π
π° π° πΈπ½ππ΄π½ππ°ππ»πΎ*\n\n*- π²πΎπππΎπ±πΎππ΄ πππ΄ π΄π» π΄π½π»π°π²π΄ ππ΄π° ππΈπΌπΈπ»π°π π°:*\n*β https://www.mediafire.com/file/pbabuzyc7i8ord5/TheMystic-Bot-MD-master_%25285%2529.zip/file*')
}}
handler.help = ['mediafire'].map(v => v + ' <url>')
handler.tags = ['downloader']
handler.command = /^(mediafire|mediafiredl|dlmediafire)$/i
export default handler