2023-05-03 19:27:06 +08:00
|
|
|
|
import {Command} from './commandManager';
|
|
|
|
|
|
|
|
|
|
export const exampleCommand1: Command = {
|
|
|
|
|
name: 'exampleCommand1',
|
|
|
|
|
pattern: 'example: command1 {{prompt}}',
|
|
|
|
|
description: '这是一个示例命令1',
|
2023-05-03 23:21:46 +08:00
|
|
|
|
handler: async (userInput: string) => {
|
2023-05-03 19:27:06 +08:00
|
|
|
|
return `示例命令1处理了以下文本:${userInput}`;
|
|
|
|
|
},
|
|
|
|
|
};
|