test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mol
2023-12-14 11:59:26 +08:00
parent 91853e4296
commit 752b6e8eb9

View File

@ -41,13 +41,13 @@ function cookInit() {
} }
function dealCommon(data) { function dealCommon(data) {
for (let i of data.keys()) { for (let i of Object.keys(data)) {
logger(data[i]) logger(data[i])
} }
logger('开始处理指令') logger('开始处理指令')
logger(data) logger(data)
const [commandText, ...contentText] = data.text.trim().split(' '); const [commandText, ...contentText] = data.text.trim().split(' ');
for (let com of cookCommand.keys()) { for (let com of Object.keys(cookCommand)) {
if (cookCommand[com].includes(commandText)) { if (cookCommand[com].includes(commandText)) {
commandHandle[com](contentText, data); commandHandle[com](contentText, data);
break; break;