goat
command
webup
upload audio video and image to media uploader created by โก๏ธ ๐ป๐ด๐๐ด๐ โก๏ธ
0
views
0
likes
0
installs
raw source
const axios = require("axios");
module.exports = {
config: {
name: "webup",
version: "1.0",
author: "โก๏ธ ๐ป๐ด๐๐ด๐ โก๏ธ",
description: "upload audio video and image to media uploader created by โก๏ธ ๐ป๐ด๐๐ด๐ โก๏ธ",
countDown: 5,
role: 0,
guide: "{pn} reply to an image",
category: "media"
},
onStart: async ({ event, message }) => {
try{
const url = event.messageReply.attachments[0].url;
const { data } = await axios.get(`https://store.noobx-api.rf.gd/upload/url?url=${encodeURIComponent(url)}`);
const link = data.url;
message.reply(link)
} catch (e) {
message.reply(e.message);
}
}
}