-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpoly.js
27 lines (23 loc) · 839 Bytes
/
poly.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const fetch = require('node-fetch')
const FormData = require('form-data')
const { MessageType } = require('@adiwajshing/baileys')
const { sticker } = require('../lib/sticker')
let handler = async (m, { conn, text }) => {
pp = `https://xteam.xyz/videomaker/poly?text=${text}&APIKEY=${Apikey}`
await sticker(false, pp, 'Poly Text', '_BOTSTYLE_').then(gege => {
conn.sendMessage(m.chat, gege, 'stickerMessage', { quoted: m })
})
if (!text) throw 'Teksnya.. mana sayang?'
}
handler.help = ['poly <teks>']
//handler.tags = ['creator']
handler.command = /^sleding$/i
handler.owner = false
handler.mods = false
handler.premium = false
handler.group = false
handler.private = false
handler.admin = false
handler.botAdmin = false
handler.fail = null
module.exports = handler