feat: 修复命令消息处理中的空格问题
This commit is contained in:
parent
0d6e45370e
commit
1793fb38ff
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user