mrmBot-Matrix/commands/image-editing/speed.js
2021-06-09 22:50:14 -05:00

20 lines
No EOL
549 B
JavaScript

const ImageCommand = require("../../classes/imageCommand.js");
class SpeedCommand extends ImageCommand {
params(args) {
const speed = parseInt(args[0]);
return {
speed: isNaN(speed) || speed < 1 ? 2 : speed
};
}
static description = "Makes an image sequence faster";
static aliases = ["speedup", "fast", "gifspeed", "faster"];
static arguments = ["{multiplier}"];
static requiresGIF = true;
static noImage = "You need to provide an image to speed up!";
static command = "speed";
}
module.exports = SpeedCommand;