mrmBot-Matrix/commands/image-editing/slow.js
2021-05-24 14:31:44 -05:00

21 lines
No EOL
547 B
JavaScript

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;
static noImage = "You need to provide an image to slow down!";
static command = "speed";
}
module.exports = SlowCommand;