From 49baa1b73b614542a33151fcc435316b69207170 Mon Sep 17 00:00:00 2001 From: CrazyKid Date: Sun, 27 Dec 2020 17:20:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9B=9E=E5=A4=8D?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B6=88=E6=81=AF=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message/components/ComponentReply.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/cc/moecraft/icq/sender/message/components/ComponentReply.java diff --git a/src/main/java/cc/moecraft/icq/sender/message/components/ComponentReply.java b/src/main/java/cc/moecraft/icq/sender/message/components/ComponentReply.java new file mode 100644 index 00000000..ef14b61e --- /dev/null +++ b/src/main/java/cc/moecraft/icq/sender/message/components/ComponentReply.java @@ -0,0 +1,19 @@ +package cc.moecraft.icq.sender.message.components; + +import cc.moecraft.icq.sender.message.MessageComponent; +import lombok.AllArgsConstructor; + +/** + * @author CrazyKid (i@crazykid.moe) + * @since 2020/12/27 17:18 + */ +@AllArgsConstructor +public class ComponentReply extends MessageComponent { + + private final Long messageId; + + @Override + public String toString() { + return "[CQ:reply,id=" + messageId + "]"; + } +} From f05df9ca3480963be12f43a9b13a65fc620eb40a Mon Sep 17 00:00:00 2001 From: CrazyKid Date: Sun, 27 Dec 2020 17:23:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=B3=A8=E5=86=8Cmeta=E7=B1=BB=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cc/moecraft/icq/event/EventManager.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/cc/moecraft/icq/event/EventManager.java b/src/main/java/cc/moecraft/icq/event/EventManager.java index cc4fc0ed..9eee6b34 100644 --- a/src/main/java/cc/moecraft/icq/event/EventManager.java +++ b/src/main/java/cc/moecraft/icq/event/EventManager.java @@ -4,6 +4,9 @@ import cc.moecraft.icq.command.CommandListener; import cc.moecraft.icq.event.events.local.*; import cc.moecraft.icq.event.events.message.*; +import cc.moecraft.icq.event.events.meta.EventMeta; +import cc.moecraft.icq.event.events.meta.EventMetaHeartbeat; +import cc.moecraft.icq.event.events.meta.EventMetaLifecycle; import cc.moecraft.icq.event.events.notice.EventNotice; import cc.moecraft.icq.event.events.notice.EventNoticeFriendAdd; import cc.moecraft.icq.event.events.notice.EventNoticeGroupBan; @@ -95,7 +98,11 @@ public class EventManager EventFriendRequest.class, EventGroupAddRequest.class, EventGroupInviteRequest.class, - EventRequest.class + EventRequest.class, + + EventMeta.class, + EventMetaLifecycle.class, + EventMetaHeartbeat.class ); public EventManager(PicqBotX bot)