File size: 613 Bytes
bb69f9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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))
  }
)