Added grayscale and sepia
This commit is contained in:
parent
6494dcdcb4
commit
f71f18fc5d
8 changed files with 63 additions and 20 deletions
|
@ -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;
|
||||
|
|
17
commands/image-editing/grayscale.js
Normal file
17
commands/image-editing/grayscale.js
Normal 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;
|
16
commands/image-editing/sepia.js
Normal file
16
commands/image-editing/sepia.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue