From 6115e050703b7b88648cf8994cbb367a608ff301 Mon Sep 17 00:00:00 2001 From: Dhimas Bagus Prayoga Date: Fri, 22 Jan 2021 19:42:19 +0700 Subject: [PATCH] Fix missing media --- command/sticker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/sticker.js b/command/sticker.js index b194298..9109f44 100644 --- a/command/sticker.js +++ b/command/sticker.js @@ -83,6 +83,9 @@ module.exports = { }) }) } else if ((client.isMedia || client.isQuotedImage) && colors.includes(args[0])) { + if (!client.isPmium && !client.isOwner) return client.reply(pesan.error.premium) + const encmedia = client.isQuotedImage ? JSON.parse(JSON.stringify(chat).replace('quotedM', 'm')).message.extendedTextMessage.contextInfo : chat + const media = await client.downloadAndSaveMediaMessage(encmedia) await ffmpeg(`./${media}`) .on('start', function (cmd) { console.log('[SERVER] Started :', cmd)