๐ƒ๐€๐‘๐‘๐„๐‹๐‹ ๐Œ๐”๐‚๐‡๐„๐‘๐ˆ โšก commited on
Commit
6ea5b30
ยท
unverified ยท
1 Parent(s): e494c6b

Update dl-mediafire.js

Browse files
Files changed (1) hide show
  1. 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
- text,
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.*`);