Merge branch 'main' of http://www.liubai.site:3000/ninemine/WPSBot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user