mrmBot-Matrix/commands/image-editing/speechbubble.js
2022-11-11 16:48:39 -06:00

36 lines
920 B
JavaScript

import ImageCommand from "../../classes/imageCommand.js";
class SpeechBubbleCommand extends ImageCommand {
params() {
return {
water: this.options.alpha ? "assets/images/speech.png" : "assets/images/speechbubble.png",
gravity: "north",
resize: true,
yscale: 0.2,
alpha: this.options.alpha ? true : false,
flip: this.options.flip ? true : false
};
}
static init() {
super.init();
this.flags.push({
name: "alpha",
description: "Make the top of the speech bubble transparent",
type: 5
}, {
name: "flip",
description: "Flips the speech bubble",
type: 5
});
return this;
}
static description = "Adds a speech bubble to an image";
static aliases = ["speech"];
static noImage = "You need to provide an image/GIF to add a speech bubble!";
static command = "watermark";
}
export default SpeechBubbleCommand;