Port deepfry, reddit, resize, and sonic, replace thumbnail with resize, cleanup
This commit is contained in:
parent
7486d5c170
commit
38233af2d7
20 changed files with 174 additions and 305 deletions
|
@ -1,11 +1,11 @@
|
|||
import wrap from "../../utils/wrap.js";
|
||||
//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: ""})
|
||||
text: cleanedMessage
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue