Port deepfry, reddit, resize, and sonic, replace thumbnail with resize, cleanup

This commit is contained in:
Essem 2022-04-24 23:23:21 -05:00
parent 7486d5c170
commit 38233af2d7
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
20 changed files with 174 additions and 305 deletions

View file

@ -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("&", "\\&amp;").replaceAll(">", "\\&gt;").replaceAll("<", "\\&lt;").replaceAll("\"", "\\&quot;").replaceAll("'", "\\&apos;").replaceAll("%", "\\%");
return {
text: wrap(cleanedMessage, {width: 15, indent: ""})
text: cleanedMessage
};
}