From 56b382fce3cf246fe9c20403ff51561d3ff86d49 Mon Sep 17 00:00:00 2001 From: TheEssem Date: Fri, 3 Apr 2020 17:51:05 -0500 Subject: [PATCH] Fixed error when there are no more frames to remove in speed --- commands/speed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/speed.js b/commands/speed.js index fc16510d..845d3047 100644 --- a/commands/speed.js +++ b/commands/speed.js @@ -20,6 +20,7 @@ exports.run = async (message) => { name: "speed.gif" }); } else { + if (!value.Scene) return `${message.author.mention}, that GIF is already too fast!`; const numbers = (await util.promisify(exec)(`seq 0 2 ${value.Scene.length}`)).stdout.split("\n").join(","); const buffer = await gm().out("(").out(image.path).coalesce().out(")").out("-delete", numbers).bufferPromise(image.type, image.delay); return message.channel.createMessage("", { -- 2.51.2