diff --git a/commands/utility/vid2gif.js b/commands/utility/vid2gif.js index a810ab2..4ac1992 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 => {