Fixed error when there are no more frames to remove in speed
This commit is contained in:
parent
b803fe0769
commit
56b382fce3
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ exports.run = async (message) => {
|
||||||
name: "speed.gif"
|
name: "speed.gif"
|
||||||
});
|
});
|
||||||
} else {
|
} 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 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);
|
const buffer = await gm().out("(").out(image.path).coalesce().out(")").out("-delete", numbers).bufferPromise(image.type, image.delay);
|
||||||
return message.channel.createMessage("", {
|
return message.channel.createMessage("", {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue