File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 48
48
"- 查看AI聊天配置\n " +
49
49
"- 重置AI聊天\n " +
50
50
"- 群聊总结 [消息数目]|群聊总结 1000\n " +
51
- "- /g [内容] (使用大模型聊天)\n " ,
51
+ "- /gpt [内容] (使用大模型聊天)\n " ,
52
52
53
53
PrivateDataFolder : "aichat" ,
54
54
})
@@ -387,8 +387,8 @@ func init() {
387
387
}
388
388
})
389
389
390
- // 添加 /g 命令处理(同时支持回复消息和直接使用)
391
- en .OnKeyword ("/g " , ensureconfig ).SetBlock (true ).Handle (func (ctx * zero.Ctx ) {
390
+ // 添加 /gpt 命令处理(同时支持回复消息和直接使用)
391
+ en .OnKeyword ("/gpt " , ensureconfig ).SetBlock (true ).Handle (func (ctx * zero.Ctx ) {
392
392
text := ctx .MessageString ()
393
393
394
394
var query string
@@ -416,8 +416,9 @@ func init() {
416
416
}
417
417
}
418
418
419
- // 提取 /g 后面的内容
420
- parts := strings .SplitN (text , "/g" , 2 )
419
+ // 提取 /gpt 后面的内容
420
+ parts := strings .SplitN (text , "/gpt" , 2 )
421
+
421
422
var gContent string
422
423
if len (parts ) > 1 {
423
424
gContent = strings .TrimSpace (parts [1 ])
You can’t perform that action at this time.
0 commit comments