Rewrite command descriptions

This commit is contained in:
Hri7566 2024-06-12 17:37:01 -04:00
parent 8e75aaad07
commit ac43825c27
6 changed files with 43 additions and 49 deletions

View File

@ -4,7 +4,7 @@ import { CosmicColor } from "@util/CosmicColor";
export const color = new Command( export const color = new Command(
"color", "color",
["color"], ["color"],
"Get the name of a color", "Get the name of your color/any hex color",
"color [hex color]", "color [hex color]",
"command.general.color", "command.general.color",
async ({ id, command, args, prefix, part, user }) => { async ({ id, command, args, prefix, part, user }) => {

View File

@ -17,7 +17,7 @@ export const help = new Command(
"cammands", "cammands",
"cummunds" "cummunds"
], ],
"Get command list or command usage", "Get a list of commands, or how to use them",
"help [command]", "help [command]",
"command.general.help", "command.general.help",
async ({ id, command, args, prefix, part, user }) => { async ({ id, command, args, prefix, part, user }) => {

View File

@ -3,7 +3,7 @@ import Command from "@server/commands/Command";
export const myid = new Command( export const myid = new Command(
"myid", "myid",
["myid"], ["myid"],
"Get your own ID", "Get your own user ID",
"myid", "myid",
"command.general.myid", "command.general.myid",
async ({ id, command, args, prefix, part, user }) => { async ({ id, command, args, prefix, part, user }) => {

View File

@ -6,7 +6,7 @@ import prisma from "@server/data/prisma";
export const inventory = new Command( export const inventory = new Command(
"inventory", "inventory",
["inventory", "inv", "items", "i"], ["inventory", "inv", "items", "i"],
"Look at your inventory", "List your inventory items and details",
"inventory", "inventory",
"command.inventory.inventory", "command.inventory.inventory",
async ({ id, command, args, prefix, part, user }) => { async ({ id, command, args, prefix, part, user }) => {

View File

@ -4,7 +4,7 @@ import { getInventory } from "@server/data/inventory";
export const pokemon = new Command( export const pokemon = new Command(
"pokemon", "pokemon",
["pokemon"], ["pokemon"],
"Look at your Pokemon", "List your Pokémon collection",
"pokemon", "pokemon",
"command.inventory.pokemon", "command.inventory.pokemon",
async ({ id, command, args, prefix, part, user }) => { async ({ id, command, args, prefix, part, user }) => {
@ -13,12 +13,10 @@ export const pokemon = new Command(
const sack = inv.pokemon as TPokemonSack[]; const sack = inv.pokemon as TPokemonSack[];
return `Friend ${part.name}'s Pokémon: ${ return `Friend ${part.name}'s Pokémon: ${sack
sack
.map( .map(
(pokemon: IPokemon) => (pokemon: IPokemon) =>
`${pokemon.emoji || ""}${pokemon.name}${ `${pokemon.emoji || ""}${pokemon.name}${pokemon.count ? ` (x${pokemon.count})` : ""
pokemon.count ? ` (x${pokemon.count})` : ""
}` }`
) )
.join(", ") || "(none)" .join(", ") || "(none)"

View File

@ -5,8 +5,8 @@ import type { User } from "@prisma/client";
export const sack = new Command( export const sack = new Command(
"sack", "sack",
["sack", "caught"], ["sack", "caught", "catched", "sock", "fish-sack", "fishies", "myfish", "mysack", "sacks"],
"Look at your fish sack", "List your caught fish",
"sack [user ID]", "sack [user ID]",
"command.inventory.sack", "command.inventory.sack",
async ({ id, command, args, prefix, part, user }) => { async ({ id, command, args, prefix, part, user }) => {
@ -37,12 +37,10 @@ export const sack = new Command(
const fishSack = inv.fishSack as TFishSack; const fishSack = inv.fishSack as TFishSack;
return `Contents of ${foundUser.name}'s fish sack: ${ return `Contents of ${foundUser.name}'s fish sack: ${fishSack
fishSack
.map( .map(
(fish: IFish) => (fish: IFish) =>
`${fish.emoji || "🐟"}${fish.name}${ `${fish.emoji || "🐟"}${fish.name}${fish.count ? ` (x${fish.count})` : ""
fish.count ? ` (x${fish.count})` : ""
}` }`
) )
.join(", ") || "(none)" .join(", ") || "(none)"
@ -52,12 +50,10 @@ export const sack = new Command(
if (!inv) return; if (!inv) return;
const fishSack = inv.fishSack as TFishSack; const fishSack = inv.fishSack as TFishSack;
return `Contents of ${part.name}'s fish sack: ${ return `Contents of ${part.name}'s fish sack: ${fishSack
fishSack
.map( .map(
(fish: IFish) => (fish: IFish) =>
`${fish.emoji || "🐟"}${fish.name}${ `${fish.emoji || "🐟"}${fish.name}${fish.count ? ` (x${fish.count})` : ""
fish.count ? ` (x${fish.count})` : ""
}` }`
) )
.join(", ") || "(none)" .join(", ") || "(none)"