Lots of slash command work, added workaround for eris-fleet request debugging

This commit is contained in:
Essem 2022-03-31 00:42:03 -05:00
parent b8aeb6625a
commit 2cffdf6628
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
61 changed files with 417 additions and 244 deletions

View file

@ -17,6 +17,7 @@ class CowsayCommand extends Command {
static description = "Makes an ASCII cow say a message";
static aliases = ["cow"];
static arguments = ["{cow}", "[text]"];
static slashAllowed = false;
}
export default CowsayCommand;

View file

@ -9,6 +9,7 @@ class FullwidthCommand extends Command {
static description = "Converts a message to fullwidth/aesthetic text";
static aliases = ["aesthetic", "aesthetics", "aes"];
static arguments = ["[text]"];
static slashAllowed = false;
}
export default FullwidthCommand;

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class HomebrewCommand extends ImageCommand {
params() {
return {
caption: this.args.join(" ").toLowerCase().replaceAll("\n", " ")
caption: (this.type === "classic" ? this.args.join(" ") : this.options.text).toLowerCase().replaceAll("\n", " ")
};
}

View file

@ -15,6 +15,7 @@ class MCCommand extends Command {
static description = "Generates a Minecraft achievement image";
static aliases = ["ach", "achievement", "minecraft"];
static arguments = ["[text]"];
static slashAllowed = false;
}
export default MCCommand;

View file

@ -27,6 +27,7 @@ class RetroCommand extends ImageCommand {
static requiresText = true;
static noText = "You need to provide some text to make retro!";
static command = "retro";
static slashAllowed = false;
}
export default RetroCommand;

View file

@ -29,6 +29,7 @@ class RPSCommand extends Command {
static description = "Plays rock, paper, scissors with me";
static aliases = ["rockpaperscissors"];
static arguments = ["[rock/paper/scissors]"];
static slashAllowed = false;
}
export default RPSCommand;

View file

@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
class SonicCommand extends ImageCommand {
params() {
const cleanedMessage = this.args.join(" ").replaceAll("&", "\\&amp;").replaceAll(">", "\\&gt;").replaceAll("<", "\\&lt;").replaceAll("\"", "\\&quot;").replaceAll("'", "\\&apos;").replaceAll("%", "\\%");
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: ""})
};

View file

@ -25,6 +25,7 @@ class XKCDCommand extends Command {
static description = "Gets an XKCD comic";
static arguments = ["{id}"];
static slashAllowed = false;
}
export default XKCDCommand;