Spaces:
Paused
Paused
Download plugins/forward.js from levantermd/lyfe1: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/forward.js
- Command line
-
hf download hf://spaces/levantermd/lyfe1/plugins/forward.js
-
curl -L -o forward.js https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/forward.js
634 Bytes
| const { forwardOrBroadCast, bot, parsedJid } = require('../lib/') | |
| bot( | |
| { | |
| pattern: 'forward ?(.*)', | |
| desc: 'forward replied msg', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| if (!message.reply_message) return await message.send('*Reply to a message*') | |
| for (const jid of parsedJid(match)) await forwardOrBroadCast(jid, message) | |
| } | |
| ) | |
| bot( | |
| { | |
| pattern: 'save ?(.*)', | |
| desc: 'forward replied msg to u', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| if (!message.reply_message) return await message.send('*Reply to a message*') | |
| await forwardOrBroadCast(message.participant, message) | |
| } | |
| ) | |