Lots of slash command work, added workaround for eris-fleet request debugging
This commit is contained in:
parent
b8aeb6625a
commit
2cffdf6628
61 changed files with 417 additions and 244 deletions
|
@ -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;
|
|
@ -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;
|
|
@ -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", " ")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
|
@ -3,7 +3,7 @@ import ImageCommand from "../../classes/imageCommand.js";
|
|||
|
||||
class SonicCommand extends ImageCommand {
|
||||
params() {
|
||||
const cleanedMessage = this.args.join(" ").replaceAll("&", "\\&").replaceAll(">", "\\>").replaceAll("<", "\\<").replaceAll("\"", "\\"").replaceAll("'", "\\'").replaceAll("%", "\\%");
|
||||
const cleanedMessage = (this.type === "classic" ? this.args.join(" ") : this.options.text).replaceAll("&", "\\&").replaceAll(">", "\\>").replaceAll("<", "\\<").replaceAll("\"", "\\"").replaceAll("'", "\\'").replaceAll("%", "\\%");
|
||||
return {
|
||||
text: wrap(cleanedMessage, {width: 15, indent: ""})
|
||||
};
|
||||
|
|
|
@ -25,6 +25,7 @@ class XKCDCommand extends Command {
|
|||
|
||||
static description = "Gets an XKCD comic";
|
||||
static arguments = ["{id}"];
|
||||
static slashAllowed = false;
|
||||
}
|
||||
|
||||
export default XKCDCommand;
|
Loading…
Add table
Add a link
Reference in a new issue