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(
"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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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,12 +13,10 @@ export const pokemon = new Command(
const sack = inv.pokemon as TPokemonSack[];
return `Friend ${part.name}'s Pokémon: ${
sack
return `Friend ${part.name}'s Pokémon: ${sack
.map(
(pokemon: IPokemon) =>
`${pokemon.emoji || ""}${pokemon.name}${
pokemon.count ? ` (x${pokemon.count})` : ""
`${pokemon.emoji || ""}${pokemon.name}${pokemon.count ? ` (x${pokemon.count})` : ""
}`
)
.join(", ") || "(none)"

View File

@ -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,12 +37,10 @@ export const sack = new Command(
const fishSack = inv.fishSack as TFishSack;
return `Contents of ${foundUser.name}'s fish sack: ${
fishSack
return `Contents of ${foundUser.name}'s fish sack: ${fishSack
.map(
(fish: IFish) =>
`${fish.emoji || "🐟"}${fish.name}${
fish.count ? ` (x${fish.count})` : ""
`${fish.emoji || "🐟"}${fish.name}${fish.count ? ` (x${fish.count})` : ""
}`
)
.join(", ") || "(none)"
@ -52,12 +50,10 @@ export const sack = new Command(
if (!inv) return;
const fishSack = inv.fishSack as TFishSack;
return `Contents of ${part.name}'s fish sack: ${
fishSack
return `Contents of ${part.name}'s fish sack: ${fishSack
.map(
(fish: IFish) =>
`${fish.emoji || "🐟"}${fish.name}${
fish.count ? ` (x${fish.count})` : ""
`${fish.emoji || "🐟"}${fish.name}${fish.count ? ` (x${fish.count})` : ""
}`
)
.join(", ") || "(none)"