Spaces:
Paused
Paused
๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐ โก
commited on
Update dl-mediafire.js
Browse files- plugins/dl-mediafire.js +4 -7
plugins/dl-mediafire.js
CHANGED
|
@@ -4,11 +4,8 @@ const { fetchJson } = require('../lib/functions');
|
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
cmd({
|
| 10 |
-
pattern: '
|
| 11 |
-
react: '๐ฅ',
|
| 12 |
desc: 'Download MediaFire files',
|
| 13 |
category: 'download',
|
| 14 |
filename: __filename
|
|
@@ -40,7 +37,7 @@ cmd({
|
|
| 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('> *
|
| 44 |
|
| 45 |
const apiUrl = `https://api.davidcyriltech.my.id/mediafire?url=${encodeURIComponent(text)}`;
|
| 46 |
|
|
@@ -53,13 +50,13 @@ cmd({
|
|
| 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.*`);
|
| 60 |
}
|
| 61 |
} catch (error) {
|
| 62 |
console.error('Error during MediaFire command:', error);
|
| 63 |
-
reply(`*An error occurred while processing your request. Please try again later
|
| 64 |
}
|
| 65 |
});
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
|
|
|
|
|
|
|
| 7 |
cmd({
|
| 8 |
+
pattern: 'mediafire',
|
|
|
|
| 9 |
desc: 'Download MediaFire files',
|
| 10 |
category: 'download',
|
| 11 |
filename: __filename
|
|
|
|
| 37 |
const text = body.trim().replace(command, '').trim();
|
| 38 |
if (!text) return reply(`*Example*: ${command} https://www.mediafire.com/file/n6tgcrktbnov1oy/Queen_Anita-V4.zip/file`);
|
| 39 |
|
| 40 |
+
await reply('> *Processing...*');
|
| 41 |
|
| 42 |
const apiUrl = `https://api.davidcyriltech.my.id/mediafire?url=${encodeURIComponent(text)}`;
|
| 43 |
|
|
|
|
| 50 |
document: { url: downloadLink },
|
| 51 |
mimetype: mimeType,
|
| 52 |
fileName: fileName,
|
| 53 |
+
caption: `๐ฆ *File Name:* ${fileName}\n\n> แดแดแดกแดสแดแด
สส แด
แดแด ษชแด
แดสสษชส แดแดแดส`
|
| 54 |
}, { quoted: m });
|
| 55 |
} else {
|
| 56 |
reply(`*Failed to fetch file details! Please check the MediaFire URL and try again.*`);
|
| 57 |
}
|
| 58 |
} catch (error) {
|
| 59 |
console.error('Error during MediaFire command:', error);
|
| 60 |
+
reply(`*An error occurred while processing your request. Please try again later.*\n\nError details: ${error.message}\n${error.stack}`);
|
| 61 |
}
|
| 62 |
});
|