// code from goatstore // api: https://store.agi.bd const axios = require("axios"); const fs = require("fs-extra"); module.exports = { config: { name: "aniblur", aliases: ["animeblur"], version: "1.0", author: "AceGun", countDown: 5, role: 0, shortDescription: "", longDescription: { en: ".", }, category: "fun", guide: { en: "{prefix} ", }, }, onStart: async function ({ api, event }) { const link = [ "https://i.postimg.cc/QdzSzcM1/image.jpg", "https://i.postimg.cc/QCSJJTPB/ros.jpg", "https://i.postimg.cc/3xkF2WZR/Cybergot-Cute-anime-pics-Dark-anime-Anime-monochrome.jpg", "https://i.postimg.cc/63XVscx2/Icon.jpg", "https://i.postimg.cc/D0YbzdHc/11.jpg", "https://i.postimg.cc/nLt9MLRN/12.jpg", "https://i.postimg.cc/2601H7kf/zod-ac.jpg", "https://i.postimg.cc/g0drmTrW/13.jpg", "https://i.postimg.cc/CKN51sff/Pin-on-icons.jpg", "https://i.postimg.cc/pr9LsNcD/14.jpg", "https://i.postimg.cc/VLCNM8Cw/anime-avatar.jpg", "https://i.postimg.cc/Z5my5RD2/15.jpg", "https://i.postimg.cc/XqFpVSKn/https-youtube-com-channel-UC3l3cgr-BNj-W5n7de68os-Fnw.jpg", "https://i.postimg.cc/dQd1ZFdY/Draincore-Icon-Aesthetic.jpg", "https://i.postimg.cc/zXFGpk02/B-L-A-C-K-P-I-N-K-balasultan-krulus-anime-gothic-edits-dp-profile-insta.jpg", "https://i.postimg.cc/MGvZ6Jxg/16.jpg", "https://i.postimg.cc/76zxz15V/Bbbb.jpg", "https://i.postimg.cc/Wp6VP1gh/image.jpg", "https://i.postimg.cc/pTfwxs9g/17.jpg", "https://i.postimg.cc/ZnjXv0xH/18.jpg", "https://i.postimg.cc/vZ4CDYg7/image.jpg", "https://i.postimg.cc/PfK74p1z/19.jpg", "https://i.postimg.cc/mrQXFtb9/Icon.jpg", "https://i.postimg.cc/9MbLJKwF/20.jpg", "https://i.postimg.cc/v8PP9Rd0/distorted.jpg", ]; const randomIndex = Math.floor(Math.random() * link.length); const imageUrl = link[randomIndex]; const filePath = __dirname + `/cache/${randomIndex}.jpg`; const response = await axios.get(imageUrl, { responseType: "stream" }); response.data.pipe(fs.createWriteStream(filePath)); response.data.on("end", () => { api.sendMessage( { body: "「 Here is your aniblur avatar 🥰 」\n\n author: NIROB ", attachment: fs.createReadStream(filePath), }, event.threadID, () => fs.unlinkSync(filePath) ); }); }, };