sticker-attp y ttp.js 2.0 KB

12345678910111213141516171819202122232425
  1. import { sticker } from '../lib/sticker.js'
  2. import fetch from 'node-fetch'
  3. let handler = async(m, { conn, text, args, usedPrefix, command }) => {
  4. let user = global.db.data.users[m.sender]
  5. let f = user.packname || global.packname
  6. let g = (user.packname && user.author ? user.author : (user.packname && !user.author ? '' : global.author))
  7. if (!text) return conn.reply(m.chat, `${mg}𝙀𝙨𝙘𝙧𝙞𝙗𝙖 𝙥𝙖𝙧𝙖 𝙦𝙪𝙚 𝙚𝙡 𝙩𝙚𝙭𝙩𝙤 𝙨𝙚 𝙘𝙤𝙣𝙫𝙞𝙚𝙧𝙩𝙖 𝙚𝙡 𝙨𝙩𝙞𝙘𝙠𝙚𝙧\n𝙀𝙟𝙚𝙢𝙥𝙡𝙤\n*${usedPrefix + command}* Nuevo Sticker`, m, {contextInfo: {externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: wm, body: '', previewType: 0, thumbnail: img.getRandom(), sourceUrl: redes.getRandom()}}})
  8. let teks = encodeURI(text)
  9. conn.fakeReply(m.chat, `*Esto puede demorar unos minutos*`, '[email protected]', `No haga spam gil`, 'status@broadcast', null, fake)
  10. //m.reply(`Calma crack estoy haciendo tu texto a sticker 👏\n\n> *Esto puede demorar unos minutos*`)
  11. if (command == 'attp') {
  12. let stiker = await sticker(null,`${global.APIs.fgmods.url}/maker/attp?text=${teks}&apikey=${global.APIs.fgmods.key}`, f, g)
  13. conn.sendFile(m.chat, stiker, 'sticker.webp', '',m, true, { contextInfo: { 'forwardingScore': 200, 'isForwarded': false, externalAdReply:{ showAdAttribution: false, title: wm, body: vs, mediaType: 2, sourceUrl: [nna, nn, md, yt].getRandom(), thumbnail: imagen4}}}, { quoted: m })}
  14. if (command == 'ttp') {
  15. let stiker = await sticker(null,`${global.APIs.fgmods.url}/maker/ttp?text=${teks}&apikey=${global.APIs.fgmods.key}`, f, g)
  16. conn.sendFile(m.chat, stiker, 'sticker.webp', '',m, true, { contextInfo: { 'forwardingScore': 200, 'isForwarded': false, externalAdReply:{ showAdAttribution: false, title: wm, body: vs, mediaType: 2, sourceUrl: [nna, nn, md, yt].getRandom(), thumbnail: imagen4}}}, { quoted: m })
  17. }
  18. }
  19. handler.help = ['attp'];
  20. handler.tags = ['sticker']
  21. handler.command = /^(attp|ttp|ttp2|ttp3|ttp4|attp2)$/i
  22. handler.register = true
  23. export default handler