fix: make /help more readable

This commit is contained in:
Patrick Erichsen 2025-08-04 19:07:25 -07:00
parent a0a053a740
commit b922f2feec

View file

@ -28,8 +28,8 @@ export async function handleSlashCommands(
case "help":
const allCommands = getAllSlashCommands(assistant);
const helpMessage = [
"Available commands:",
...allCommands.map((cmd) => `/${cmd.name} - ${cmd.description}`),
chalk.cyan("Slash commands:"),
...allCommands.map((cmd) => `- ${chalk.white(`/${cmd.name}:`)} ${chalk.gray(cmd.description)}`),
].join("\n");
posthogService.capture("useSlashCommand", {
name: "help",