← back to browse
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);
    }
  }
}

View raw file