Spaces:
Paused
Paused
๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐ โก
commited on
Update dl-mediafire.js
Browse files- plugins/dl-mediafire.js +6 -4
plugins/dl-mediafire.js
CHANGED
|
@@ -5,16 +5,17 @@ const { fetchJson } = require('../lib/functions');
|
|
| 5 |
|
| 6 |
|
| 7 |
|
|
|
|
| 8 |
cmd({
|
| 9 |
pattern: 'mediafirepro',
|
|
|
|
| 10 |
desc: 'Download MediaFire files',
|
| 11 |
category: 'download',
|
| 12 |
filename: __filename
|
| 13 |
}, async (conn, mek, m, {
|
| 14 |
-
|
| 15 |
from,
|
| 16 |
quoted,
|
| 17 |
-
body,
|
| 18 |
isCmd,
|
| 19 |
command,
|
| 20 |
args,
|
|
@@ -36,9 +37,10 @@ cmd({
|
|
| 36 |
reply
|
| 37 |
}) => {
|
| 38 |
try {
|
|
|
|
| 39 |
if (!text) return reply(`*Example*: ${command} https://www.mediafire.com/file/n6tgcrktbnov1oy/Queen_Anita-V4.zip/file`);
|
| 40 |
|
| 41 |
-
await reply('> *Processing...*');
|
| 42 |
|
| 43 |
const apiUrl = `https://api.davidcyriltech.my.id/mediafire?url=${encodeURIComponent(text)}`;
|
| 44 |
|
|
@@ -51,7 +53,7 @@ cmd({
|
|
| 51 |
document: { url: downloadLink },
|
| 52 |
mimetype: mimeType,
|
| 53 |
fileName: fileName,
|
| 54 |
-
caption: `๐ฆ *File Name:* ${fileName}\n\n> แดแดแดกแดสแดแด
สส แดส
|
| 55 |
}, { quoted: m });
|
| 56 |
} else {
|
| 57 |
reply(`*Failed to fetch file details! Please check the MediaFire URL and try again.*`);
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
+
|
| 9 |
cmd({
|
| 10 |
pattern: 'mediafirepro',
|
| 11 |
+
react: '๐ฅ',
|
| 12 |
desc: 'Download MediaFire files',
|
| 13 |
category: 'download',
|
| 14 |
filename: __filename
|
| 15 |
}, async (conn, mek, m, {
|
| 16 |
+
body,
|
| 17 |
from,
|
| 18 |
quoted,
|
|
|
|
| 19 |
isCmd,
|
| 20 |
command,
|
| 21 |
args,
|
|
|
|
| 37 |
reply
|
| 38 |
}) => {
|
| 39 |
try {
|
| 40 |
+
const text = body.trim().replace(command, '').trim();
|
| 41 |
if (!text) return reply(`*Example*: ${command} https://www.mediafire.com/file/n6tgcrktbnov1oy/Queen_Anita-V4.zip/file`);
|
| 42 |
|
| 43 |
+
await reply('> *Subzero Processing...*');
|
| 44 |
|
| 45 |
const apiUrl = `https://api.davidcyriltech.my.id/mediafire?url=${encodeURIComponent(text)}`;
|
| 46 |
|
|
|
|
| 53 |
document: { url: downloadLink },
|
| 54 |
mimetype: mimeType,
|
| 55 |
fileName: fileName,
|
| 56 |
+
caption: `๐ฆ *File Name:* ${fileName}\n\n> แดแดแดกแดสแดแด
สส แดส าสแดษดแด`
|
| 57 |
}, { quoted: m });
|
| 58 |
} else {
|
| 59 |
reply(`*Failed to fetch file details! Please check the MediaFire URL and try again.*`);
|