Skip to content

Commit

Permalink
Update sticker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 22, 2021
1 parent 17a128e commit 541c410
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/sticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ module.exports = {
} else if ((client.isMedia || client.isQuotedImage) && colors.includes(args[0])) {
await ffmpeg(`./${media}`)
.on('start', function (cmd) {
console.log('Started :', cmd)
console.log('[SERVER] Started :', cmd)
})
.on('error', function (err) {
fs.unlinkSync(media)
console.log('Error :', err)
console.log('[SERVER] Error :', err)
})
.on('end', function () {
console.log('Finish')
console.log('[SERVER] Berhasil membuat sticker')
fs.unlinkSync(media)
client.sendMessage(client.from, fs.readFileSync(ran), MessageType.sticker, { quoted: chat })
fs.unlinkSync(ran)
Expand Down

0 comments on commit 541c410

Please sign in to comment.