Share

ttp

Public

21 December 2020

Views: 9

case '#ttp':
if (!isGroupMsg) return tobz.reply(from, 'Perintah ini hanya bisa di gunakan dalam group!', message.id)
try
{
const string = body.toLowerCase().includes('#ttp') ? body.slice(5) : body.slice(5)
if(args)
{
if(quotedMsgObj == null)
{
const gasMake = await getStickerMaker(string)
if(gasMake.status == true)
{
try{
await tobz.sendImageAsSticker(from, gasMake.base64)
}catch(err) {
await tobz.reply(from, 'Gagal membuat.', id)
}
}else{
await tobz.reply(from, gasMake.reason, id)
}
}else if(quotedMsgObj != null){
const gasMake = await getStickerMaker(quotedMsgObj.body)
if(gasMake.status == true)
{
try{
await tobz.sendImageAsSticker(from, gasMake.base64)
}catch(err) {
await tobz.reply(from, 'Gagal membuat.', id)
}
}else{
await tobz.reply(from, gasMake.reason, id)
}
}

}else{
await tobz.reply(from, 'Tidak boleh kosong.', id)
}
}catch(error)
{
console.log(error)
}
break

pastelink.net/casettp

Advertisement

Disable Third Party Ads