import wrap from "../../utils/wrap.js"; import ImageCommand from "../../classes/imageCommand.js"; class SonicCommand extends ImageCommand { params() { const cleanedMessage = (this.type === "classic" ? this.args.join(" ") : this.options.text).replaceAll("&", "\\&").replaceAll(">", "\\>").replaceAll("<", "\\<").replaceAll("\"", "\\"").replaceAll("'", "\\'").replaceAll("%", "\\%"); return { text: wrap(cleanedMessage, {width: 15, indent: ""}) }; } static description = "Creates a Sonic speech bubble image"; static arguments = ["[text]"]; static requiresImage = false; static requiresText = true; static noText = "You need to provide some text to make a Sonic meme!"; static command = "sonic"; } export default SonicCommand;