Rewrite command descriptions
This commit is contained in:
parent
8e75aaad07
commit
ac43825c27
|
@ -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 }) => {
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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)"
|
||||
}`;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
|
|
@ -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)"
|
||||
}`;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue