mrmBot-Matrix/commands/image-editing/slow.js

21 lines
547 B
JavaScript
Raw Normal View History

const ImageCommand = require("../../classes/imageCommand.js");
class SlowCommand extends ImageCommand {
params(args) {
const speed = parseInt(args[0]);
return {
slow: true,
speed: isNaN(speed) ? 2 : speed
};
}
static description = "Makes an image sequence slower";
static aliases = ["slowdown", "slower", "gifspeed2"];
static arguments = ["{multiplier}"];
static requiresGIF = true;
2021-05-24 19:31:44 +00:00
static noImage = "You need to provide an image to slow down!";
static command = "speed";
}
module.exports = SlowCommand;