Spaces:
Paused
Paused
Download plugins/pp.js from levantermd/lyfe1: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/pp.js
- Command line
-
hf download hf://spaces/levantermd/lyfe1/plugins/pp.js
-
curl -L -o pp.js https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/pp.js
488 Bytes
| const { bot } = require('../lib/') | |
| bot( | |
| { | |
| pattern: 'fullpp ?(.*)', | |
| desc: 'set full size profile picture', | |
| type: 'user', | |
| }, | |
| async (message, match) => { | |
| if (!message.reply_message || !message.reply_message.image) | |
| return await message.send('*Reply to a image.*') | |
| await message.updateProfilePicture( | |
| await message.reply_message.downloadMediaMessage(), | |
| message.client.user.jid | |
| ) | |
| return await message.send('_Profile Picture Updated_') | |
| } | |
| ) | |