Facebook
From Okay, 3 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 211
  1. module.exports.config = {
  2.  name: "info",
  3.  version: "0.0.6",
  4.  hasPermssion: 0,
  5.  credits: "TANVIR_6X", //don't change the credits please
  6.  description: "Admin and Bot info.",
  7.  commandCategory: "INFO_YOUR",
  8.  cooldowns: 1,
  9.  dependencies:
  10.  {
  11.     "request":"",
  12.     "fs-extra":"",
  13.     "axios":""
  14.   }
  15. };
  16. module.exports.run = async function({ api,event,args,client,Users,Threads,__GLOBAL,Currencies }) {
  17. const axios = global.nodemodule["axios"];
  18. const request = global.nodemodule["request"];
  19. const fs = global.nodemodule["fs-extra"];
  20.  
  21.   //FUNCTION TEXT//
  22.   var cap = [
  23.     ``]; // Enter your admin information here //
  24.   //RESULT SERVICE//
  25.   var result = cap[Math.floor(Math.random() * cap.length)];
  26.     var url = [
  27.       ""
  28.     ]; //give your video url here //
  29.     var callback = () => api.sendMessage({ body: result, attachment: fs.createReadStream(__dirname + "/cache/NamE.mp4") }, event.threadID, () => fs.unlinkSync(__dirname + "/cache/NamE.mp4"));
  30.     return request(encodeURI(url[Math.floor(Math.random() * url.length)])).pipe(fs.createWriteStream(__dirname + "/cache/NamE.mp4")).on("finish", callback);
  31.   };
  32.