Skip to content

Commit

Permalink
Try to fix missing flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 22, 2021
1 parent 48bcd3d commit 831bd51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/sticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ module.exports = {
})
.on('end', function () {
console.log('[SERVER] Berhasil membuat sticker')
client.sendMessage(client.from, fs.readFileSync(ranw), MessageType.sticker, { quoted: chat })
fs.unlinkSync(media)
client.sendMessage(client.from, fs.readFileSync(ran), MessageType.sticker, { quoted: chat })
fs.unlinkSync(ranw)
})
.addOutputOptions(['-vcodec', 'libwebp', '-vf', `scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=${args[0]}@0.0, split [a][b]; [a] palettegen=reserve_transparent=off; [b][p] paletteuse`])
.addOutputOptions(['-vcodec', 'libwebp', '-vf', `scale='min(320,iw)':min'(320,ih)':force_original_aspect_ratio=decrease,fps=15, pad=320:320:-1:-1:color=${args[0]}@0.0, split [a][b]; [a] palettegen=reserve_transparent=off [p]; [b][p] paletteuse`])
.toFormat('webp')
.save(ranw)
} else {
Expand Down

0 comments on commit 831bd51

Please sign in to comment.