From c2fc5c965af9b45d9a24f2cfaea6dd1d640c174d Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Fri, 11 Nov 2022 22:43:46 +0800 Subject: [PATCH] add PaoPaoSleepWaring --- .../com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java b/src/main/java/com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java index 1e221ec..89b659d 100644 --- a/src/main/java/com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java +++ b/src/main/java/com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java @@ -14,7 +14,7 @@ import static com.yutou.qqbot.models.Model.QQGroupCommands.QQ_TIMEOUT; public class PaoPaoSleepWaring extends Model { @Override public boolean isUserPublic() { - return false; + return true; } @Override @@ -30,7 +30,7 @@ public class PaoPaoSleepWaring extends Model { @Override public void onMessage(Long qq, MessageEvent event, boolean isGroup) { super.onMessage(qq, event, isGroup); - if(Integer.parseInt(AppTools.getHours())>22 && event.getSource().getFromId() == 914520754){ + if(Integer.parseInt(AppTools.getHours())>=22 && event.getSource().getFromId() == 914520754){ MessageChainBuilder builder=new MessageChainBuilder(); builder.append(new QuoteReply(event.getMessage())); builder.append("别水了,该睡了~");