Specify that image commands also work on GIFs

This commit is contained in:
Essem 2022-01-26 12:53:20 -06:00
parent afa9482ee8
commit 7248621048
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
59 changed files with 110 additions and 110 deletions

View file

@ -125,7 +125,7 @@ class ImageCommand extends Command {
static requiresImage = true;
static requiresText = false;
static requiresGIF = false;
static noImage = "You need to provide an image!";
static noImage = "You need to provide an image/GIF!";
static noText = "You need to provide some text!";
static command = "";
}

View file

@ -8,7 +8,7 @@ import imageDetect from "../../utils/imagedetect.js";
class QrReadCommand extends Command {
async run() {
const image = await imageDetect(this.client, this.message);
if (image === undefined) return "You need to provide an image with a QR code to read!";
if (image === undefined) return "You need to provide an image/GIF with a QR code to read!";
this.client.sendChannelTyping(this.message.channel.id);
const data = await (await fetch(image.path)).buffer();
const rawData = await sharp(data).ensureAlpha().raw().toBuffer({ resolveWithObject: true });

View file

@ -5,7 +5,7 @@ class RawCommand extends Command {
async run() {
this.client.sendChannelTyping(this.message.channel.id);
const image = await imageDetect(this.client, this.message);
if (image === undefined) return "You need to provide an image to get a raw URL!";
if (image === undefined) return "You need to provide an image/GIF to get a raw URL!";
return image.path;
}

View file

@ -9,7 +9,7 @@ class NineGagCommand extends ImageCommand {
static description = "Adds the 9GAG watermark to an image";
static aliases = ["ninegag", "gag"];
static noImage = "You need to provide an image to add a 9GAG watermark!";
static noImage = "You need to provide an image/GIF to add a 9GAG watermark!";
static command = "watermark";
}

View file

@ -10,7 +10,7 @@ class BandicamCommand extends ImageCommand {
static description = "Adds the Bandicam watermark to an image";
static aliases = ["bandi"];
static noImage = "You need to provide an image to add a Bandicam watermark!";
static noImage = "You need to provide an image/GIF to add a Bandicam watermark!";
static command = "watermark";
}

View file

@ -7,7 +7,7 @@ class BlurCommand extends ImageCommand {
static description = "Blurs an image";
static noImage = "You need to provide an image to blur!";
static noImage = "You need to provide an image/GIF to blur!";
static command = "blur";
}

View file

@ -14,7 +14,7 @@ class BlurpleCommand extends ImageCommand {
description: "Use the old blurple color"
}];
static noImage = "You need to provide an image to make blurple!";
static noImage = "You need to provide an image/GIF to make blurple!";
static command = "colors";
static aliases = ["blurp"];
}

View file

@ -26,7 +26,7 @@ class CaptionCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide some text to add a caption!";
static noImage = "You need to provide an image to add a caption!";
static noImage = "You need to provide an image/GIF to add a caption!";
static command = "caption";
}

View file

@ -25,7 +25,7 @@ class CaptionTwoCommand extends ImageCommand {
}];
static noText = "You need to provide some text to add a caption!";
static noImage = "You need to provide an image to add a caption!";
static noImage = "You need to provide an image/GIF to add a caption!";
static command = "captionTwo";
}

View file

@ -4,7 +4,7 @@ class CircleCommand extends ImageCommand {
static description = "Applies a radial blur effect on an image";
static aliases = ["cblur", "radial", "radialblur"];
static noImage = "You need to provide an image to add radial blur!";
static noImage = "You need to provide an image/GIF to add radial blur!";
static command = "circle";
}

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class CropCommand extends ImageCommand {
static description = "Crops an image to 1:1";
static noImage = "You need to provide an image to crop!";
static noImage = "You need to provide an image/GIF to crop!";
static command = "crop";
}

View file

@ -4,7 +4,7 @@ class DeepfryCommand extends ImageCommand {
static description = "Deep-fries an image";
static aliases = ["fry", "jpeg2", "nuke", "df"];
static noImage = "You need to provide an image to fry!";
static noImage = "You need to provide an image/GIF to fry!";
static command = "deepfry";
}

View file

@ -10,7 +10,7 @@ class DeviantArtCommand extends ImageCommand {
static description = "Adds a DeviantArt watermark to an image";
static aliases = ["da", "deviant"];
static noImage = "You need to provide an image to add a DeviantArt watermark!";
static noImage = "You need to provide an image/GIF to add a DeviantArt watermark!";
static command = "watermark";
}

View file

@ -8,7 +8,7 @@ class ExplodeCommand extends ImageCommand {
static description = "Explodes an image";
static aliases = ["exp"];
static noImage = "You need to provide an image to explode!";
static noImage = "You need to provide an image/GIF to explode!";
static command = "explode";
}

View file

@ -37,7 +37,7 @@ class FlagCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide an emoji of a flag to overlay!";
static noImage = "You need to provide an image to overlay a flag onto!";
static noImage = "You need to provide an image/GIF to overlay a flag onto!";
static command = "flag";
}

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class FlipCommand extends ImageCommand {
static description = "Flips an image";
static noImage = "You need to provide an image to flip!";
static noImage = "You need to provide an image/GIF to flip!";
static command = "flip";
}

View file

@ -8,7 +8,7 @@ class FlopCommand extends ImageCommand {
static description = "Flips an image";
static aliases = ["flip2"];
static noImage = "You need to provide an image to flop!";
static noImage = "You need to provide an image/GIF to flop!";
static command = "flip";
}

View file

@ -14,7 +14,7 @@ class FreezeCommand extends ImageCommand {
static arguments = ["{end frame number}"];
static requiresGIF = true;
static noImage = "You need to provide an image to freeze!";
static noImage = "You need to provide an image/GIF to freeze!";
static command = "freeze";
}

View file

@ -10,7 +10,7 @@ class FunkyCommand extends ImageCommand {
static description = "Adds the New Funky Mode banner to an image";
static aliases = ["funkymode", "newfunkymode", "funkykong"];
static noImage = "You need to provide an image to add a New Funky Mode banner!";
static noImage = "You need to provide an image/GIF to add a New Funky Mode banner!";
static command = "watermark";
}

View file

@ -4,7 +4,7 @@ class GameXplainCommand extends ImageCommand {
static description = "Makes a GameXplain thumbnail from an image";
static aliases = ["gx"];
static noImage = "You need to provide an image to make a GameXplain thumbnail from!";
static noImage = "You need to provide an image/GIF to make a GameXplain thumbnail from!";
static command = "gamexplain";
}

View file

@ -4,7 +4,7 @@ class GlobeCommand extends ImageCommand {
static description = "Spins an image";
static aliases = ["sphere"];
static noImage = "You need to provide an image to spin!";
static noImage = "You need to provide an image/GIF to spin!";
static command = "globe";
}

View file

@ -9,7 +9,7 @@ class GrayscaleCommand extends ImageCommand {
static description = "Adds a grayscale filter";
static noImage = "You need to provide an image to turn grayscale!";
static noImage = "You need to provide an image/GIF to turn grayscale!";
static command = "colors";
static aliases = ["gray", "greyscale", "grey"];
}

View file

@ -8,7 +8,7 @@ class HaaHCommand extends ImageCommand {
static description = "Mirrors the left side of an image onto the right";
static aliases = ["magik4", "mirror2"];
static noImage = "You need to provide an image to mirror!";
static noImage = "You need to provide an image/GIF to mirror!";
static command = "mirror";
}

View file

@ -8,7 +8,7 @@ class HooHCommand extends ImageCommand {
static description = "Mirrors the bottom of an image onto the top";
static aliases = ["magik6", "mirror4"];
static noImage = "You need to provide an image to mirror!";
static noImage = "You need to provide an image/GIF to mirror!";
static command = "mirror";
}

View file

@ -10,7 +10,7 @@ class HypercamCommand extends ImageCommand {
static description = "Adds the Hypercam watermark to an image";
static aliases = ["hcam"];
static noImage = "You need to provide an image to add a Hypercam watermark!";
static noImage = "You need to provide an image/GIF to add a Hypercam watermark!";
static command = "watermark";
}

View file

@ -10,7 +10,7 @@ class iFunnyCommand extends ImageCommand {
static description = "Adds the iFunny watermark to an image";
static noImage = "You need to provide an image to add an iFunny watermark!";
static noImage = "You need to provide an image/GIF to add an iFunny watermark!";
static command = "watermark";
}

View file

@ -8,7 +8,7 @@ class ImplodeCommand extends ImageCommand {
static description = "Implodes an image";
static aliases = ["imp"];
static noImage = "You need to provide an image to implode!";
static noImage = "You need to provide an image/GIF to implode!";
static command = "explode";
}

View file

@ -4,7 +4,7 @@ class InvertCommand extends ImageCommand {
static description = "Inverts an image";
static aliases = ["inverse", "negate", "negative"];
static noImage = "You need to provide an image to invert!";
static noImage = "You need to provide an image/GIF to invert!";
static command = "invert";
}

View file

@ -12,7 +12,7 @@ class JPEGCommand extends ImageCommand {
static aliases = ["needsmorejpeg", "jpegify", "magik2", "morejpeg", "jpg", "quality"];
static arguments = ["{quality}"];
static noImage = "You need to provide an image to add more JPEG!";
static noImage = "You need to provide an image/GIF to add more JPEG!";
static command = "jpeg";
}

View file

@ -10,7 +10,7 @@ class KineMasterCommand extends ImageCommand {
static description = "Adds the KineMaster watermark to an image";
static aliases = ["kine"];
static noImage = "You need to provide an image to add a KineMaster watermark!";
static noImage = "You need to provide an image/GIF to add a KineMaster watermark!";
static command = "watermark";
}

View file

@ -4,7 +4,7 @@ class LeakCommand extends ImageCommand {
static description = "Creates a fake Smash leak thumbnail";
static aliases = ["smash", "laxchris", "ssbu", "smashleak"];
static noImage = "You need to provide an image to make a Smash leak thumbnail!";
static noImage = "You need to provide an image/GIF to make a Smash leak thumbnail!";
static command = "leak";
}

View file

@ -4,7 +4,7 @@ class MagikCommand extends ImageCommand {
static description = "Adds a content aware scale effect to an image";
static aliases = ["imagemagic", "imagemagick", "imagemagik", "magic", "magick", "cas", "liquid"];
static noImage = "You need to provide an image to add some magik!";
static noImage = "You need to provide an image/GIF to add some magik!";
static command = "magik";
}

View file

@ -25,7 +25,7 @@ class MemeCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide some text to generate a meme!";
static noImage = "You need to provide an image to generate a meme!";
static noImage = "You need to provide an image/GIF to generate a meme!";
static command = "meme";
}

View file

@ -10,7 +10,7 @@ class MemeCenterCommand extends ImageCommand {
static description = "Adds the MemeCenter watermark to an image";
static aliases = ["memec", "mcenter"];
static noImage = "You need to provide an image to add a MemeCenter watermark!";
static noImage = "You need to provide an image/GIF to add a MemeCenter watermark!";
static command = "watermark";
}

View file

@ -23,7 +23,7 @@ class MotivateCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide some text to generate a motivational poster!";
static noImage = "You need to provide an image to generate a motivational poster!";
static noImage = "You need to provide an image/GIF to generate a motivational poster!";
static command = "motivate";
}

View file

@ -4,7 +4,7 @@ class PixelateCommand extends ImageCommand {
static description = "Pixelates an image";
static aliases = ["pixel", "small"];
static noImage = "You need to provide an image to pixelate!";
static noImage = "You need to provide an image/GIF to pixelate!";
static command = "resize";
}

View file

@ -11,7 +11,7 @@ class ReverseCommand extends ImageCommand {
static aliases = ["backwards"];
static requiresGIF = true;
static noImage = "You need to provide an image to reverse!";
static noImage = "You need to provide an image/GIF to reverse!";
static command = "reverse";
}

View file

@ -4,7 +4,7 @@ class ScottCommand extends ImageCommand {
static description = "Makes Scott the Woz show off an image";
static aliases = ["woz", "tv", "porn"];
static noImage = "You need to provide an image for Scott to show off!";
static noImage = "You need to provide an image/GIF for Scott to show off!";
static command = "scott";
}

View file

@ -9,7 +9,7 @@ class SepiaCommand extends ImageCommand {
static description = "Adds a sepia filter";
static noImage = "You need to provide an image to add a sepia filter!";
static noImage = "You need to provide an image/GIF to add a sepia filter!";
static command = "colors";
}

View file

@ -8,7 +8,7 @@ class SharpenCommand extends ImageCommand {
static description = "Sharpens an image";
static aliases = ["sharp"];
static noImage = "You need to provide an image to sharpen!";
static noImage = "You need to provide an image/GIF to sharpen!";
static command = "blur";
}

View file

@ -10,7 +10,7 @@ class ShutterstockCommand extends ImageCommand {
static description = "Adds the Shutterstock watermark to an image";
static aliases = ["stock", "stockphoto"];
static noImage = "You need to provide an image to add a Shutterstock watermark!";
static noImage = "You need to provide an image/GIF to add a Shutterstock watermark!";
static command = "watermark";
}

View file

@ -14,7 +14,7 @@ class SlowCommand extends ImageCommand {
static arguments = ["{multiplier}"];
static requiresGIF = true;
static noImage = "You need to provide an image to slow down!";
static noImage = "You need to provide an image/GIF to slow down!";
static command = "speed";
}

View file

@ -21,7 +21,7 @@ class SnapchatCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide some text to add a caption!";
static noImage = "You need to provide an image to add a caption!";
static noImage = "You need to provide an image/GIF to add a caption!";
static command = "snapchat";
}

View file

@ -12,7 +12,7 @@ class SooSCommand extends ImageCommand {
static aliases = ["bounce", "boomerang"];
static requiresGIF = true;
static noImage = "You need to provide an image to loop!";
static noImage = "You need to provide an image/GIF to loop!";
static command = "reverse";
}

View file

@ -13,7 +13,7 @@ class SpeedCommand extends ImageCommand {
static arguments = ["{multiplier}"];
static requiresGIF = true;
static noImage = "You need to provide an image to speed up!";
static noImage = "You need to provide an image/GIF to speed up!";
static command = "speed";
}

View file

@ -4,7 +4,7 @@ class SpinCommand extends ImageCommand {
static description = "Spins an image";
static aliases = ["rotate"];
static noImage = "You need to provide an image to spin!";
static noImage = "You need to provide an image/GIF to spin!";
static command = "spin";
}

View file

@ -8,7 +8,7 @@ class StretchCommand extends ImageCommand {
static description = "Stretches an image to a 4:3 aspect ratio";
static aliases = ["aspect", "ratio", "aspect43", "43"];
static noImage = "You need to provide an image to stretch!";
static noImage = "You need to provide an image/GIF to stretch!";
static command = "resize";
}

View file

@ -4,7 +4,7 @@ class SwirlCommand extends ImageCommand {
static description = "Swirls an image";
static aliases = ["whirlpool"];
static noImage = "You need to provide an image to swirl!";
static noImage = "You need to provide an image/GIF to swirl!";
static command = "swirl";
}

View file

@ -4,7 +4,7 @@ class TileCommand extends ImageCommand {
static description = "Creates a tile pattern from an image";
static aliases = ["wall2"];
static noImage = "You need to provide an image to tile!";
static noImage = "You need to provide an image/GIF to tile!";
static command = "tile";
}

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class TrumpCommand extends ImageCommand {
static description = "Makes Trump display an image";
static noImage = "You need to provide an image for Trump to display!";
static noImage = "You need to provide an image/GIF for Trump to display!";
static command = "trump";
}

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class UncaptionCommand extends ImageCommand {
static description = "Removes the caption from an image";
static noImage = "You need to provide an image to uncaption!";
static noImage = "You need to provide an image/GIF to uncaption!";
static command = "uncaption";
}

View file

@ -8,7 +8,7 @@ class UnfreezeCommand extends ImageCommand {
static description = "Unfreezes an image sequence";
static requiresGIF = true;
static noImage = "You need to provide an image to unfreeze!";
static noImage = "You need to provide an image/GIF to unfreeze!";
static command = "freeze";
}

View file

@ -4,7 +4,7 @@ class WaaWCommand extends ImageCommand {
static description = "Mirrors the right side of an image onto the left";
static aliases = ["magik3", "mirror"];
static noImage = "You need to provide an image to mirror!";
static noImage = "You need to provide an image/GIF to mirror!";
static command = "mirror";
}

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class WallCommand extends ImageCommand {
static description = "Creates a wall from an image";
static noImage = "You need to provide an image to make a wall!";
static noImage = "You need to provide an image/GIF to make a wall!";
static command = "wall";
}

View file

@ -4,7 +4,7 @@ class WhoDidThisCommand extends ImageCommand {
static description = "Creates a \"WHO DID THIS\" meme from an image";
static aliases = ["whodidthis"];
static noImage = "You need to provide an image to make a \"who did this\" meme!";
static noImage = "You need to provide an image/GIF to make a \"who did this\" meme!";
static command = "wdt";
}

View file

@ -14,7 +14,7 @@ class WhisperCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide some text to add a caption!";
static noImage = "You need to provide an image to add a caption!";
static noImage = "You need to provide an image/GIF to add a caption!";
static command = "whisper";
}

View file

@ -8,7 +8,7 @@ class WideCommand extends ImageCommand {
static description = "Stretches an image to 19x its width";
static aliases = ["w19", "wide19"];
static noImage = "You need to provide an image to stretch!";
static noImage = "You need to provide an image/GIF to stretch!";
static command = "resize";
}

View file

@ -9,7 +9,7 @@ class WooWCommand extends ImageCommand {
static description = "Mirrors the top of an image onto the bottom";
static aliases = ["magik5", "mirror3"];
static noImage = "You need to provide an image to mirror!";
static noImage = "You need to provide an image/GIF to mirror!";
static command = "mirror";
}

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class ZamnCommand extends ImageCommand {
static description = "Adds a \"ZAMN\" reaction to an image";
static noImage = "You need to provide an image to \"ZAMN\" at!";
static noImage = "You need to provide an image/GIF to \"ZAMN\" at!";
static command = "zamn";
}