From ac43825c27c9be10e7ac5823b1df61156d2d41ce Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Wed, 12 Jun 2024 17:37:01 -0400 Subject: [PATCH] Rewrite command descriptions --- src/api/commands/groups/general/color.ts | 2 +- src/api/commands/groups/general/help.ts | 2 +- src/api/commands/groups/general/myid.ts | 2 +- .../commands/groups/inventory/inventory.ts | 26 ++++++------ src/api/commands/groups/inventory/pokemon.ts | 20 +++++----- src/api/commands/groups/inventory/sack.ts | 40 +++++++++---------- 6 files changed, 43 insertions(+), 49 deletions(-) diff --git a/src/api/commands/groups/general/color.ts b/src/api/commands/groups/general/color.ts index 5998535..d0b4d39 100644 --- a/src/api/commands/groups/general/color.ts +++ b/src/api/commands/groups/general/color.ts @@ -4,7 +4,7 @@ import { CosmicColor } from "@util/CosmicColor"; export const color = new Command( "color", ["color"], - "Get the name of a color", + "Get the name of your color/any hex color", "color [hex color]", "command.general.color", async ({ id, command, args, prefix, part, user }) => { diff --git a/src/api/commands/groups/general/help.ts b/src/api/commands/groups/general/help.ts index e5d2191..0ee01c2 100644 --- a/src/api/commands/groups/general/help.ts +++ b/src/api/commands/groups/general/help.ts @@ -17,7 +17,7 @@ export const help = new Command( "cammands", "cummunds" ], - "Get command list or command usage", + "Get a list of commands, or how to use them", "help [command]", "command.general.help", async ({ id, command, args, prefix, part, user }) => { diff --git a/src/api/commands/groups/general/myid.ts b/src/api/commands/groups/general/myid.ts index e610515..a813068 100644 --- a/src/api/commands/groups/general/myid.ts +++ b/src/api/commands/groups/general/myid.ts @@ -3,7 +3,7 @@ import Command from "@server/commands/Command"; export const myid = new Command( "myid", ["myid"], - "Get your own ID", + "Get your own user ID", "myid", "command.general.myid", async ({ id, command, args, prefix, part, user }) => { diff --git a/src/api/commands/groups/inventory/inventory.ts b/src/api/commands/groups/inventory/inventory.ts index 82e2950..33a65df 100644 --- a/src/api/commands/groups/inventory/inventory.ts +++ b/src/api/commands/groups/inventory/inventory.ts @@ -6,7 +6,7 @@ import prisma from "@server/data/prisma"; export const inventory = new Command( "inventory", ["inventory", "inv", "items", "i"], - "Look at your inventory", + "List your inventory items and details", "inventory", "command.inventory.inventory", async ({ id, command, args, prefix, part, user }) => { @@ -38,12 +38,12 @@ export const inventory = new Command( const items = inv.items as TInventoryItems; return `Contents of ${decidedUser.name}'s inventory: ${items - .map( - (item: IItem) => - `${item.emoji || "📦"}${item.name}${item.count ? ` (x${item.count})` : "" - }` - ) - .join(", ") || "(none)" + .map( + (item: IItem) => + `${item.emoji || "📦"}${item.name}${item.count ? ` (x${item.count})` : "" + }` + ) + .join(", ") || "(none)" }`; } else { const inv = await getInventory(user.inventoryId); @@ -52,12 +52,12 @@ export const inventory = new Command( const items = inv.items as TInventoryItems; return `Contents of ${part.name}'s inventory: ${items - .map( - (item: IItem) => - `${item.emoji || "📦"}${item.name}${item.count ? ` (x${item.count})` : "" - }` - ) - .join(", ") || "(none)" + .map( + (item: IItem) => + `${item.emoji || "📦"}${item.name}${item.count ? ` (x${item.count})` : "" + }` + ) + .join(", ") || "(none)" }`; } } diff --git a/src/api/commands/groups/inventory/pokemon.ts b/src/api/commands/groups/inventory/pokemon.ts index 95e2c68..e3ee0b3 100644 --- a/src/api/commands/groups/inventory/pokemon.ts +++ b/src/api/commands/groups/inventory/pokemon.ts @@ -4,7 +4,7 @@ import { getInventory } from "@server/data/inventory"; export const pokemon = new Command( "pokemon", ["pokemon"], - "Look at your Pokemon", + "List your Pokémon collection", "pokemon", "command.inventory.pokemon", async ({ id, command, args, prefix, part, user }) => { @@ -13,16 +13,14 @@ export const pokemon = new Command( const sack = inv.pokemon as TPokemonSack[]; - return `Friend ${part.name}'s Pokémon: ${ - sack - .map( - (pokemon: IPokemon) => - `${pokemon.emoji || ""}${pokemon.name}${ - pokemon.count ? ` (x${pokemon.count})` : "" - }` - ) - .join(", ") || "(none)" - }`; + return `Friend ${part.name}'s Pokémon: ${sack + .map( + (pokemon: IPokemon) => + `${pokemon.emoji || ""}${pokemon.name}${pokemon.count ? ` (x${pokemon.count})` : "" + }` + ) + .join(", ") || "(none)" + }`; }, true ); diff --git a/src/api/commands/groups/inventory/sack.ts b/src/api/commands/groups/inventory/sack.ts index 3440c6b..3dfd082 100644 --- a/src/api/commands/groups/inventory/sack.ts +++ b/src/api/commands/groups/inventory/sack.ts @@ -5,8 +5,8 @@ import type { User } from "@prisma/client"; export const sack = new Command( "sack", - ["sack", "caught"], - "Look at your fish sack", + ["sack", "caught", "catched", "sock", "fish-sack", "fishies", "myfish", "mysack", "sacks"], + "List your caught fish", "sack [user ID]", "command.inventory.sack", async ({ id, command, args, prefix, part, user }) => { @@ -37,31 +37,27 @@ export const sack = new Command( const fishSack = inv.fishSack as TFishSack; - return `Contents of ${foundUser.name}'s fish sack: ${ - fishSack - .map( - (fish: IFish) => - `${fish.emoji || "🐟"}${fish.name}${ - fish.count ? ` (x${fish.count})` : "" - }` - ) - .join(", ") || "(none)" - }`; + return `Contents of ${foundUser.name}'s fish sack: ${fishSack + .map( + (fish: IFish) => + `${fish.emoji || "🐟"}${fish.name}${fish.count ? ` (x${fish.count})` : "" + }` + ) + .join(", ") || "(none)" + }`; } else { const inv = await getInventory(user.inventoryId); if (!inv) return; const fishSack = inv.fishSack as TFishSack; - return `Contents of ${part.name}'s fish sack: ${ - fishSack - .map( - (fish: IFish) => - `${fish.emoji || "🐟"}${fish.name}${ - fish.count ? ` (x${fish.count})` : "" - }` - ) - .join(", ") || "(none)" - }`; + return `Contents of ${part.name}'s fish sack: ${fishSack + .map( + (fish: IFish) => + `${fish.emoji || "🐟"}${fish.name}${fish.count ? ` (x${fish.count})` : "" + }` + ) + .join(", ") || "(none)" + }`; } } );