Skip to content

Commit 2dd8ea0

Browse files
committed
docs: fix examples
1 parent 7da0d48 commit 2dd8ea0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/website/docs/guide/13-ai-powered-commands/03-ai-commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const aiConfig = {
3232
} satisfies AiConfig;
3333

3434
// Regular command handler
35-
export async function messageCommand(ctx: MessageCommandContext) {
35+
export async function message(ctx: MessageCommandContext) {
3636
const username = ctx.args.join(' ') || 'stranger';
3737
await ctx.message.reply(`Hello, ${username}!`);
3838
}

apps/website/docs/guide/13-ai-powered-commands/08-troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ export const command = {
484484
description: 'Debug AI system',
485485
};
486486

487-
export async function messageCommand(ctx: MessageCommandContext) {
487+
export async function message(ctx: MessageCommandContext) {
488488
const aiPlugin = useAI();
489489
const config = getAIConfig();
490490

0 commit comments

Comments
 (0)