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

Update dl-mediafire.js

Browse files
Files changed (1) hide show
  1. 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: 'mediafirepro',
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('> *Subzero Processing...*');
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
  });