Note 2/8/2022 7:13:22 AM

module.exports.config = { name: "sukunaxmegumi", version: "1.0.0", hasPermssion: 0, credits: "hungcho mod by Kaiser", description: "random ảnh sukuna & megumi", commandCategory: "random-img", usages: "sukunaxmemi", cooldowns: 5, dependencies: { "request":"", "fs-extra":"", "axios":"" } }; module.exports.run = async({api,event,args,Users,Threads,Currencies}) => { const axios = global.nodemodule["axios"]; const request = global.nodemodule["request"]; const fs = global.nodemodule["fs-extra"]; var link = [ "https://i.imgur.com/7cjnqvi.jpg", "https://i.imgur.com/5oinLy8.jpg", "https://i.imgur.com/6ul7qgs.jpg", "https://i.imgur.com/Ajc8J3w.jpg", "https://i.imgur.com/AMnJonb.jpg", "https://i.imgur.com/zfPUyJf.jpg", "https://i.imgur.com/hDUVnKQ.jpg", "https://i.imgur.com/i8oVYYP.jpg", "https://i.imgur.com/28z862W.jpg", "https://i.imgur.com/l272A4e.jpg", "https://i.imgur.com/jo5KLsa.jpg", "https://i.imgur.com/oVgoJ1d.jpg", "https://i.imgur.com/Ajc8J3w.jpg" ]; var callback = () => api.sendMessage({body:`Số ảnh: ${link.length}`,attachment: fs.createReadStream(__dirname + "/cache/30.jpg")}, event.threadID, () => fs.unlinkSync(__dirname + "/cache/30.jpg")); return request(encodeURI(link[Math.floor(Math.random() * link.length)])).pipe(fs.createWriteStream(__dirname+"/cache/30.jpg")).on("close",() => callback()); };

Public Last updated: 2022-02-08 07:13:22 AM