𝐃𝐀𝐑𝐑𝐄𝐋𝐋 πŒπ”π‚π‡π„π‘πˆ ⚑ commited on
Commit
6262a87
Β·
unverified Β·
1 Parent(s): 8d29ec3

Update dl-xdown.js

Browse files
Files changed (1) hide show
  1. plugins/dl-xdown.js +4 -3
plugins/dl-xdown.js CHANGED
@@ -1,4 +1,4 @@
1
- /*const { cmd } = require('../command');
2
  const axios = require('axios');
3
  const fs = require('fs');
4
  const path = require('path');
@@ -20,6 +20,7 @@ const fetchJson = async (url) => {
20
 
21
  cmd({
22
  pattern: "xdownload",
 
23
  react: "πŸ“₯",
24
  desc: "Download videos from Xvideos.",
25
  category: "utility",
@@ -63,7 +64,7 @@ cmd({
63
  console.log(`Subzero downloaded video successfully: ${videoPath}`);
64
 
65
  // Send the video to the user
66
- await conn.sendMessage(m.chat, { video: fs.readFileSync(videoPath), caption: `πŸŽ₯ *Title:* ${videoData.title}\nπŸ‘€ *Views:* ${videoData.views}\nπŸ‘ *Likes:* ${videoData.likes}` });
67
 
68
  // Clean up the downloaded file
69
  fs.unlinkSync(videoPath);
@@ -74,4 +75,4 @@ cmd({
74
  return reply("❌ An error occurred while processing your request. Please try again.");
75
  }
76
  });
77
- */
 
1
+ const { cmd } = require('../command');
2
  const axios = require('axios');
3
  const fs = require('fs');
4
  const path = require('path');
 
20
 
21
  cmd({
22
  pattern: "xdownload",
23
+ alias: ["xnxxdl","xxx"],
24
  react: "πŸ“₯",
25
  desc: "Download videos from Xvideos.",
26
  category: "utility",
 
64
  console.log(`Subzero downloaded video successfully: ${videoPath}`);
65
 
66
  // Send the video to the user
67
+ await conn.sendMessage(m.chat, { video: fs.readFileSync(videoPath), caption: `*\`SUBZERO MD XVIDEOS DL\` \n\nπŸŽ₯ *Title:* ${videoData.title}\nπŸ‘€ *Views:* ${videoData.views}\nπŸ‘ *Likes:* ${videoData.likes}` });
68
 
69
  // Clean up the downloaded file
70
  fs.unlinkSync(videoPath);
 
75
  return reply("❌ An error occurred while processing your request. Please try again.");
76
  }
77
  });
78
+