Spaces:
Paused
Paused
Download plugins/fancy.js from levantermd/lyfe1: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/fancy.js
- Command line
-
hf download hf://spaces/levantermd/lyfe1/plugins/fancy.js
-
curl -L -o fancy.js https://huggingface.co/spaces/levantermd/lyfe1/resolve/main/plugins/fancy.js
613 Bytes
| const { bot, textToStylist, fontType, stylishTextGen } = require('../lib') | |
| bot( | |
| { | |
| pattern: 'fancy ?(.*)', | |
| desc: 'Creates fancy text from given text', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| if ( | |
| !match || | |
| (message.reply_message.text && (!match || isNaN(match) || match < 1 || match > 47)) | |
| ) | |
| return await message.send('*Example :*\nfancy Hi\nfancy 7 replying text msg') | |
| if (message.reply_message.text) { | |
| return await message.send(textToStylist(message.reply_message.text, fontType(match))) | |
| } | |
| return await message.send(stylishTextGen(match)) | |
| } | |
| ) | |