Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
[PR] #52 CrazyKidCN - 新增“回复消息”的信息组件、修复meta事件无法被注册
Browse files Browse the repository at this point in the history
新增“回复消息”的信息组件、修复meta事件无法被注册
  • Loading branch information
hykilpikonna authored Dec 27, 2020
2 parents 02586c6 + f05df9c commit be135a6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/cc/moecraft/icq/event/EventManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cc.moecraft.icq.sender.message.components;

import cc.moecraft.icq.sender.message.MessageComponent;
import lombok.AllArgsConstructor;

/**
* @author CrazyKid ([email protected])
* @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 + "]";
}
}

0 comments on commit be135a6

Please sign in to comment.