From e879848c05171cf42b2010babb816bc421b342d2 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 12 Oct 2019 12:16:28 +0200 Subject: [PATCH] changed the way it put fps --- commands/utility/vid2gif.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/utility/vid2gif.js b/commands/utility/vid2gif.js index a810ab24..4ac1992b 100644 --- a/commands/utility/vid2gif.js +++ b/commands/utility/vid2gif.js @@ -51,13 +51,15 @@ class vid2giftCommand extends Command { if (args.fps) { options += ` -r ${args.fps}`; + } else { + options += ' -r 15'; } fs.writeFile(`${os.tmpdir()}/${message.id}v2g`, buffer, () => { - exec(`ffmpeg -i ${os.tmpdir()}/${message.id}v2g ${options} -r 15 ${os.tmpdir()}/${message.id}v2g.gif -hide_banner`) + exec(`ffmpeg -i ${os.tmpdir()}/${message.id}v2g ${options} ${os.tmpdir()}/${message.id}v2g.gif -hide_banner`) .then(() => { return message.channel.send({files: [`${os.tmpdir()}/${message.id}v2g.gif`]}) .catch(err => {