21 lines
No EOL
548 B
JavaScript
21 lines
No EOL
548 B
JavaScript
const ImageCommand = require("../../classes/imageCommand.js");
|
|
|
|
class SlowCommand extends ImageCommand {
|
|
params() {
|
|
const speed = parseInt(this.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; |