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

18 lines
476 B
JavaScript
Raw Normal View History

const ImageCommand = require("../../classes/imageCommand.js");
class ReverseCommand extends ImageCommand {
params(url, delay) {
return {
delay: delay ? (100 / delay.split("/")[0]) * delay.split("/")[1] : 0
};
}
static description = "Reverses an image sequence";
static aliases = ["backwards"];
static requiresGIF = true;
2021-05-24 19:31:44 +00:00
static noImage = "You need to provide an image to reverse!";
static command = "reverse";
}
module.exports = ReverseCommand;