Added tag commands descriptions

This commit is contained in:
TheEssem 2019-12-05 18:15:28 -06:00
parent c357d3bc46
commit 3836ecb69b
5 changed files with 32 additions and 6 deletions

View file

@ -50,7 +50,10 @@ exports.run = async (message, args) => {
} else if (category === 2) {
categories.moderation.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
} else if (category === 3) {
categories.tags.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
const subCommands = Array.from(Object.keys(description));
for (const subCommand of subCommands) {
categories.tags.push(`**tags${subCommand !== "default" ? ` ${subCommand}` : ""}**${params[subCommand] ? ` ${params[subCommand]}` : ""} - ${description[subCommand]}`);
}
} else if (category === 4) {
categories.fun.push(`**${command}**${params ? ` ${params}` : ""} - ${description}`);
} else if (category === 5) {

View file

@ -18,4 +18,5 @@ exports.run = async (message, args) => {
exports.aliases = ["hbc", "brew", "wiibrew"];
exports.category = 4;
exports.help = "Creates a Homebrew Channel edit";
exports.help = "Creates a Homebrew Channel edit";
exports.params = "[text]";

View file

@ -83,7 +83,20 @@ const setTag = async (content, name, message, guild) => {
exports.aliases = ["t", "tag", "ta"];
exports.category = 3;
exports.help = "placeholder";
exports.help = {
default: "Gets a tag",
add: "Adds a tag",
delete: "Deletes a tag",
edit: "Edits a tag",
list: "Lists all tags in the server",
random: "Gets a random tag"
};
exports.params = {
default: "[name]",
add: "[name] [content]",
delete: "[name]",
edit: "[name] [content]"
};
/*{
default: "Gets a tag",