maker-txt.js 1.1 KB

123456789101112131415161718192021
  1. let handler = async (m, { conn, text, usedPrefix, command }) => {
  2. let teks = text ? text : m.quoted && m.quoted.text ? m.quoted.text : ''
  3. if (command == 'txt' || command == 'escribir') {
  4. if (!teks) throw `⚠️ 𝙌𝙐𝙀 𝙀𝙎𝘾𝙍𝙄𝘽𝙄𝙊? 𝙐𝙎𝘼𝙍 𝙀𝙎𝙏𝙀 𝘾𝙊𝙈𝘼𝙉𝘿𝙊 𝘿𝙀 𝙇𝘼 𝙎𝙄𝙂𝙐𝙄𝙀𝙉𝙏𝙀 𝙁𝙊𝙍𝙈𝘼\n\n𝙀𝙅𝙀𝙈𝙋𝙇𝙊: *${usedPrefix + command}* Hola LoliBot`;
  5. let img = `${global.APIs.fgmods.url}/maker/txt?text=${encodeURIComponent(teks)}&apikey=${global.APIs.fgmods.key}`;
  6. conn.sendFile(m.chat, img, 'img.png', `✍🏻 𝙀𝙎𝙏𝘼 𝙇𝙄𝙎𝙏𝙊!!\n${wm}`, m, null, fake);
  7. }
  8. if (command == 'brat') {
  9. if (!teks) throw `⚠️ Ingresar en texto\nEj: *${usedPrefix + command}* case "hola":\nm.reply("que onda")\nbreak`
  10. let res = `${global.APIs.fgmods.url}/maker/carbon?text=${teks}&apikey=${global.APIs.fgmods.key}`
  11. }
  12. }
  13. handler.help = ['txt', 'brat']
  14. handler.tags = ['game']
  15. handler.command = ['txt', 'escribir', 'brat']
  16. handler.limit = 1
  17. handler.register = true
  18. export default handler