Added grayscale and sepia

This commit is contained in:
Essem 2021-12-14 01:16:23 -06:00
parent 6494dcdcb4
commit f71f18fc5d
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
8 changed files with 63 additions and 20 deletions

View file

@ -3,7 +3,8 @@ import ImageCommand from "../../classes/imageCommand.js";
class BlurpleCommand extends ImageCommand {
params() {
return {
old: !!this.specialArgs.old
old: !!this.specialArgs.old,
color: "blurple"
};
}
@ -14,8 +15,8 @@ class BlurpleCommand extends ImageCommand {
}];
static noImage = "You need to provide an image to make blurple!";
static command = "blurple";
static command = "colors";
static aliases = ["blurp"];
}
export default BlurpleCommand;
export default BlurpleCommand;

View file

@ -0,0 +1,17 @@
import ImageCommand from "../../classes/imageCommand.js";
class GrayscaleCommand extends ImageCommand {
params() {
return {
color: "grayscale"
};
}
static description = "Adds a grayscale filter";
static noImage = "You need to provide an image to turn grayscale!";
static command = "colors";
static aliases = ["gray", "greyscale", "grey"];
}
export default GrayscaleCommand;

View file

@ -0,0 +1,16 @@
import ImageCommand from "../../classes/imageCommand.js";
class SepiaCommand extends ImageCommand {
params() {
return {
color: "sepia"
};
}
static description = "Adds a sepia filter";
static noImage = "You need to provide an image to add a sepia filter!";
static command = "colors";
}
export default SepiaCommand;