-
-
Save Rdx690/ea71b95fb88360079394dc89cb5fd22e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // adaptado de: https://github.com/BrunoSobrino/TheMystic-Bot-MD/blob/master/plugins/herramientas-readmore.js | |
| const { bot } = require('../lib'); | |
| const more = String.fromCharCode(8206); | |
| const readMore = more.repeat(4001); | |
| bot( | |
| { | |
| pattern: 'readmore ?(.*)', | |
| desc: 'Add Readmore Hi|Readmore', | |
| type: 'misc', | |
| }, | |
| async (message, match) => { | |
| if (!match) { | |
| return await message.send('Example : readmore Hi readmore hello'); | |
| } | |
| const readmoreText = match.replaceAll('readmore', readMore); | |
| try { | |
| await message.send(readmoreText); | |
| } catch (error) { | |
| console.error('Error en readmore:', error); | |
| await message.send('❌ Error.'); | |
| } | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment