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); } } }