This commit is contained in:
2025-10-30 11:05:27 +08:00
7 changed files with 926 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ class CommandParser:
'.赠送': 'gift',
'.送': 'gift',
# AI对话系统
'.ai': 'ai_chat',
'.aiconfig': 'ai_chat',
# 帮助
'.help': 'help',
'.帮助': 'help',
@@ -109,6 +113,12 @@ class CommandParser:
if content_lower.startswith(cmd_prefix.lower()):
return cls.COMMAND_MAP[cmd_prefix], content
# 特殊处理:.ai 和 .aiconfig 指令支持参数
if content.startswith('.ai '):
return 'ai_chat', content
if content.startswith('.aiconfig '):
return 'ai_chat', content
# 没有匹配的指令
logger.debug(f"未识别的指令: {content}")
return None