From 2e4e0722017b91c800fa6706d045ab43d066cc9b Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 23 Feb 2023 17:27:44 +0800 Subject: [PATCH] update --- .../com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 db36f1d..ecddf1f 100644 --- a/src/main/java/com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java +++ b/src/main/java/com/yutou/qqbot/models/Commands/PaoPaoSleepWaring.java @@ -6,6 +6,7 @@ import com.yutou.qqbot.models.Model; import com.yutou.qqbot.utlis.AppTools; import com.yutou.qqbot.utlis.RedisTools; import net.mamoe.mirai.event.events.MessageEvent; +import net.mamoe.mirai.message.data.At; import net.mamoe.mirai.message.data.MessageChainBuilder; import net.mamoe.mirai.message.data.QuoteReply; @@ -40,7 +41,10 @@ public class PaoPaoSleepWaring extends Model { RedisTools.set("paopao_sleep_"+AppTools.getToDayTime(),"true",1*60*60); } if(event.getSource().getFromId() == 914520754 && msg.contains("#体力")){ - QQBotManager.getInstance().sendMessage(qq, "惠城! 体力! "); + MessageChainBuilder builder=new MessageChainBuilder(); + builder.append(new At(369224573L)); + builder.append("惠城! 体力! "); + QQBotManager.getInstance().sendMessage(qq,builder); } } }