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

20 lines
550 B
JavaScript
Raw Normal View History

const ImageCommand = require("../../classes/imageCommand.js");
class SpeedCommand extends ImageCommand {
params() {
const speed = parseInt(this.args[0]);
return {
2021-06-10 03:50:14 +00:00
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;
2021-05-24 19:31:44 +00:00
static noImage = "You need to provide an image to speed up!";
static command = "speed";
}
module.exports = SpeedCommand;