Spaces:
Paused
Paused
Download plugins/mediafire.js from levantermd/lyfe1: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/mediafire.js
- Command line
-
hf download hf://spaces/levantermd/lyfe1/plugins/mediafire.js
-
curl -L -o mediafire.js https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/mediafire.js
520 Bytes
| const { mediafire, bot, isUrl } = require('../lib/index') | |
| bot( | |
| { | |
| pattern: 'mediafire ?(.*)', | |
| desc: 'Download mediafire file', | |
| type: 'download', | |
| }, | |
| async (message, match) => { | |
| match = isUrl(match || message.reply_message.text) | |
| if (!match) return await message.send('_Example : mediafire url_') | |
| const result = await mediafire(match) | |
| if (!result) | |
| return await message.send('*Not found*', { | |
| quoted: message.quoted, | |
| }) | |
| return await message.sendFromUrl(result) | |
| } | |
| ) | |