mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: 快速操作msg默认reply模式回应
This commit is contained in:
parent
d3a025ef7b
commit
5d01947552
@ -1,4 +1,4 @@
|
|||||||
import { OB11Message, OB11MessageAt, OB11MessageData } from '../types';
|
import { OB11Message, OB11MessageAt, OB11MessageData, OB11MessageReply } from '../types';
|
||||||
import { OB11BaseMetaEvent } from '../event/meta/OB11BaseMetaEvent';
|
import { OB11BaseMetaEvent } from '../event/meta/OB11BaseMetaEvent';
|
||||||
import { OB11BaseNoticeEvent } from '../event/notice/OB11BaseNoticeEvent';
|
import { OB11BaseNoticeEvent } from '../event/notice/OB11BaseNoticeEvent';
|
||||||
import { WebSocket as WebSocketClass } from 'ws';
|
import { WebSocket as WebSocketClass } from 'ws';
|
||||||
@ -144,6 +144,12 @@ async function handleMsg(msg: OB11Message, quickAction: QuickAction) {
|
|||||||
|
|
||||||
if (msg.message_type == 'group') {
|
if (msg.message_type == 'group') {
|
||||||
group = await getGroup(msg.group_id!.toString());
|
group = await getGroup(msg.group_id!.toString());
|
||||||
|
replyMessage.push({
|
||||||
|
type: 'reply',
|
||||||
|
data: {
|
||||||
|
id: msg.message_id.toString()
|
||||||
|
}
|
||||||
|
} as OB11MessageReply);
|
||||||
if ((quickAction as QuickActionGroupMessage).at_sender) {
|
if ((quickAction as QuickActionGroupMessage).at_sender) {
|
||||||
replyMessage.push({
|
replyMessage.push({
|
||||||
type: 'at',
|
type: 'at',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user