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

32 lines
778 B
JavaScript
Raw Normal View History

import ImageCommand from "../../classes/imageCommand.js";
2022-03-09 19:30:18 +00:00
class SpeechBubbleCommand extends ImageCommand {
2022-06-07 21:27:47 +00:00
params() {
return {
water: this.specialArgs.alpha ? "assets/images/speech.png" : "assets/images/speechbubble.png",
gravity: "north",
resize: true,
yscale: 0.2,
alpha: this.specialArgs.alpha
};
}
static init() {
super.init();
this.flags.push({
name: "alpha",
description: "Make the top of the speech bubble transparent",
type: 5
});
return this;
}
2022-03-09 19:30:18 +00:00
static description = "Adds a speech bubble to an image";
2022-06-22 16:22:56 +00:00
static aliases = ["speech"];
2022-03-09 19:30:18 +00:00
static noImage = "You need to provide an image/GIF to add a speech bubble!";
static command = "watermark";
}
2022-03-09 19:30:18 +00:00
export default SpeechBubbleCommand;