mrmBot-Matrix/commands/image-editing/speechbubble.js
2023-03-15 10:09:09 -04:00

36 lines
956 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;