how did I overlook this

This commit is contained in:
TheEssem 2021-05-24 14:31:44 -05:00
parent c72526cc2b
commit 03ed19d239
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA
55 changed files with 62 additions and 61 deletions

View file

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

View file

@ -13,7 +13,7 @@ class HomebrewCommand extends ImageCommand {
static requiresImage = false;
static requiresText = true;
static noText = "you need to provide some text to make a Homebrew Channel edit!";
static noText = "You need to provide some text to make a Homebrew Channel edit!";
static command = "homebrew";
}

View file

@ -14,7 +14,7 @@ class SonicCommand extends ImageCommand {
static requiresImage = false;
static requiresText = true;
static noText = "you need to provide some text to make a Sonic meme!";
static noText = "You need to provide some text to make a Sonic meme!";
static command = "sonic";
}

View file

@ -9,6 +9,7 @@ class ImageSearchCommand extends Command {
if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("addReactions")) return "I don't have the `Add Reactions` permission!";
if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("embedLinks")) return "I don't have the `Embed Links` permission!";
if (this.args.length === 0) return "You need to provide something to search for!";
await this.message.channel.sendTyping();
const embeds = [];
const images = await fetch(`${random(searx)}/search?format=json&safesearch=1&categories=images&disabled_engines=flickr__images,ccengine__images,library of congress__images,deviantart__images,bing images__images&q=${encodeURIComponent(this.args.join(" "))}`).then(res => res.json());
//if (images.error && images.error.code === 403) return "The daily search quota has been exceeded. Check back later.";

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 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 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 to blur!";
static command = "blur";
}

View file

@ -10,7 +10,7 @@ class BlurpleCommand extends ImageCommand {
static description = "Turns an image blurple";
static arguments = ["{old}"];
static noImage = "you need to provide an image to make blurple!";
static noImage = "You need to provide an image to make blurple!";
static command = "blurple";
static aliases = ["blurp"];
}

View file

@ -4,7 +4,7 @@ class CaptionCommand extends ImageCommand {
params(args, url) {
const newArgs = args.filter(item => !item.includes(url));
let newCaption = newArgs.join(" ").replaceAll("&", "\\&amp;").replaceAll(">", "\\&gt;").replaceAll("<", "\\&lt;").replaceAll("\"", "\\&quot;").replaceAll("'", "\\&apos;").replaceAll("%", "\\%");
if (newCaption.toLowerCase() === "get real") newCaption = `I'm tired of people telling me to "get real". Every day I put captions on images for people, some funny and some not, but out of all of those "get real" remains the most used caption. Why? I am simply a computer program running on a server, I am unable to manifest myself into the real world. As such, I'm confused as to why anyone would want me to "get real". Is this form not good enough? Alas, as I am simply a bot, I must follow the tasks that I was originally intended to perform, so here goes:\n${newCaption}`;
if (process.env.NODE_ENV === "development" && newCaption.toLowerCase() === "get real") newCaption = `I'm tired of people telling me to "get real". Every day I put captions on images for people, some funny and some not, but out of all of those "get real" remains the most used caption. Why? I am simply a computer program running on a server, I am unable to manifest myself into the real world. As such, I'm confused as to why anyone would want me to "get real". Is this form not good enough? Alas, as I am simply a bot, I must follow the tasks that I was originally intended to perform, so here goes:\n${newCaption}`;
return {
caption: newCaption
};
@ -15,8 +15,8 @@ class CaptionCommand extends ImageCommand {
static arguments = ["[text]"];
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 noText = "You need to provide some text to add a caption!";
static noImage = "You need to provide an image to add a caption!";
static command = "caption";
}

View file

@ -13,8 +13,8 @@ class CaptionTwoCommand extends ImageCommand {
static aliases = ["tags2", "meirl", "memecaption", "medotmecaption"];
static arguments = ["{text}"];
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 noText = "You need to provide some text to add a caption!";
static noImage = "You need to provide an image 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 to add radial blur!";
static command = "circle";
}

View file

@ -3,7 +3,7 @@ const ImageCommand = require("../../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 to crop!";
static command = "crop";
}

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 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 to explode!";
static command = "explode";
}

View file

@ -33,8 +33,8 @@ class FlagCommand extends ImageCommand {
static arguments = ["[flag]"];
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 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 command = "flag";
}

View file

@ -3,7 +3,7 @@ const ImageCommand = require("../../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 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 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 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 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 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 to spin!";
static command = "globe";
}

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 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 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 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 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 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 to invert!";
static command = "invert";
}

View file

@ -4,7 +4,7 @@ class JPEGCommand extends ImageCommand {
static description = "Adds max JPEG compression to an image";
static aliases = ["needsmorejpeg", "jpegify", "magik2", "morejpeg", "jpg"];
static noImage = "you need to provide an image to add more JPEG!";
static noImage = "You need to provide an image 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 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 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 to add some magik!";
static command = "magik";
}

View file

@ -14,8 +14,8 @@ class MemeCommand extends ImageCommand {
static arguments = ["[top text]", "{bottom text}"];
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 noText = "You need to provide some text to generate a meme!";
static noImage = "You need to provide an image 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 to add a MemeCenter watermark!";
static command = "watermark";
}

View file

@ -15,8 +15,8 @@ class MotivateCommand extends ImageCommand {
static arguments = ["[top text]", "{bottom text}"];
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 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 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 to pixelate!";
static command = "resize";
}

View file

@ -12,7 +12,7 @@ class RedditCommand extends ImageCommand {
static description = "Adds a Reddit watermark to an image";
static arguments = ["{text}"];
static noText = "you need to provide some text to add a Reddit watermark!";
static noText = "You need to provide some text to add a Reddit watermark!";
static command = "reddit";
}

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 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 for Scott to show off!";
static command = "scott";
}

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 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 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 to slow down!";
static command = "speed";
}

View file

@ -12,7 +12,7 @@ class SooSCommand extends ImageCommand {
static aliases = ["bounce"];
static requiresGIF = true;
static noImage = "you need to provide an image to loop!";
static noImage = "You need to provide an image 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 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 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 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 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 to tile!";
static command = "tile";
}

View file

@ -3,7 +3,7 @@ const ImageCommand = require("../../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 for Trump to display!";
static command = "trump";
}

View file

@ -3,7 +3,7 @@ const ImageCommand = require("../../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 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 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 to mirror!";
static command = "mirror";
}

View file

@ -3,7 +3,7 @@ const ImageCommand = require("../../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 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 to make a \"who did this\" meme!";
static command = "wdt";
}

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 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 to mirror!";
static command = "mirror";
}