mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: log send msg group name
This commit is contained in:
@@ -56,7 +56,7 @@ const quickLoginQQ = cmdOptions.qq;
|
|||||||
if (quickLoginQQ) {
|
if (quickLoginQQ) {
|
||||||
log('正在快速登录 ', quickLoginQQ);
|
log('正在快速登录 ', quickLoginQQ);
|
||||||
napCatCore.quickLogin(quickLoginQQ).then(res=>{
|
napCatCore.quickLogin(quickLoginQQ).then(res=>{
|
||||||
// log('快速登录结果:', res);
|
logDebug('快速登录结果:', res);
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
napCatCore.qrLogin().then(showQRCode);
|
napCatCore.qrLogin().then(showQRCode);
|
||||||
|
@@ -16,11 +16,11 @@ export async function logMessage(ob11Message: OB11Message){
|
|||||||
prefix += `${ob11Message.target_id}`;
|
prefix += `${ob11Message.target_id}`;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
group = await getGroup(ob11Message.group_id!);
|
|
||||||
prefix += '给群聊 ';
|
prefix += '给群聊 ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ob11Message.message_type === 'group') {
|
if (ob11Message.message_type === 'group') {
|
||||||
|
group = await getGroup(ob11Message.group_id!);
|
||||||
prefix += `群[${group?.groupName}(${ob11Message.group_id})] `;
|
prefix += `群[${group?.groupName}(${ob11Message.group_id})] `;
|
||||||
}
|
}
|
||||||
let msgChain = '';
|
let msgChain = '';
|
||||||
|
Reference in New Issue
Block a user