Skip to content

Commit f5a4944

Browse files
committed
fix
1 parent 13029af commit f5a4944

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GoCQSync/GoCQSync.lxl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,14 @@ function processGroupMsg(ev) {
356356

357357
// 执行指令
358358
if (txtMsg.startsWith(config.get('cmd_prefix'))) {
359+
const cmd = txtMsg.slice(config.get('cmd_prefix').length);
359360
if (
360361
config
361362
.get('superusers')
362363
.map((i) => i.toString())
363-
.includes(userId.toString())
364+
.includes(userId.toString()) ||
365+
cmd === 'list'
364366
) {
365-
const cmd = txtMsg.slice(1);
366-
367367
const { success, output } = mc.runcmdEx(cmd);
368368
const stateTxt = success ? '成功' : '失败';
369369
fastReply(`执行${stateTxt}\n${output}`);
@@ -603,7 +603,7 @@ mc.regConsoleCmd('cqreconnect', '手动重连GoCQHTTP', () => {
603603
return reconnectGoCQ();
604604
});
605605

606-
ll.registerPlugin('GoCQSync', '依赖GoCQHTTP的群服互通', [0, 4, 0], {
606+
ll.registerPlugin('GoCQSync', '依赖GoCQHTTP的群服互通', [0, 4, 1], {
607607
Author: 'student_2333',
608608
License: 'Apache-2.0',
609609
});

0 commit comments

Comments
 (0)