feat: 合并消息初步解析完成
This commit is contained in:
1 parent
1a1acdc3c9
commit
c36bb77286
5 files changed
+50
-27
No files matched your search
+2
-2
@@ -2,7 +2,7 @@ import { OB11Message } from '@/onebot11/types';
|
||||
import { log } from '@/common/utils/log';
|
||||
import { getGroup, getGroupMember, selfInfo } from '@/core/data';
|
||||
import exp from 'constants';
|
||||
import { Group } from '@/core';
|
||||
import { Group, NTQQMsgApi } from '@/core';
|
||||
import chalk from 'chalk';
|
||||
|
||||
const spSegColor = chalk.blue;// for special segment
|
||||
@@ -67,7 +67,7 @@ export async function logMessage(ob11Message: OB11Message) {
|
||||
msgParts.push(spSegColor(`[视频|${segment.data.url}]`));
|
||||
}
|
||||
else if (segment.type === 'forward') {
|
||||
msgParts.push(spSegColor(`[转发|${JSON.stringify(segment.data.id)}]`));
|
||||
msgParts.push(spSegColor(`[转发|${segment.data.id}]`));
|
||||
}
|
||||
else {
|
||||
msgParts.push(spSegColor(`[未实现|${JSON.stringify(segment)}]`));
|
||||
|
||||
Reference in new issue
Block a user