feat: 修复命令消息处理中的空格问题
All checks were successful
Egg CI/CD / build-image (push) Successful in 33s
Egg CI/CD / deploy (push) Successful in 4m9s

This commit is contained in:
zhaoyingbo 2024-06-16 09:31:13 +00:00
parent 0d6e45370e
commit 1793fb38ff

View File

@ -93,15 +93,15 @@ const manageCMDMsg = (body: LarkEvent.Data) => {
const text = getMsgText(body);
console.log("🚀 ~ manageCMDMsg ~ text:", text);
const chatId = getChatId(body);
if (text === "/id") {
if (text.trim() === "/id") {
manageIdMsg(chatId);
return true;
}
if (text === "/ci") {
if (text.trim() === "/ci") {
service.attach.ciMonitor(chatId);
return true;
}
if (text === "/rank") {
if (text.trim() === "/rank") {
sendRank();
return true;
}