fix: log send msg group name

This commit is contained in:
linyuchen
2024-04-28 20:39:16 +08:00
parent 1be7031199
commit 7b94e49b81
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ const quickLoginQQ = cmdOptions.qq;
if (quickLoginQQ) {
log('正在快速登录 ', quickLoginQQ);
napCatCore.quickLogin(quickLoginQQ).then(res=>{
// log('快速登录结果:', res);
logDebug('快速登录结果:', res);
}).catch((e) => {
console.error(e);
napCatCore.qrLogin().then(showQRCode);

View File

@@ -16,11 +16,11 @@ export async function logMessage(ob11Message: OB11Message){
prefix += `${ob11Message.target_id}`;
}
else{
group = await getGroup(ob11Message.group_id!);
prefix += '给群聊 ';
}
}
if (ob11Message.message_type === 'group') {
group = await getGroup(ob11Message.group_id!);
prefix += `群[${group?.groupName}(${ob11Message.group_id})] `;
}
let msgChain = '';