This commit is contained in:
Yutousama 2023-02-23 17:27:44 +08:00
parent ff9ae9cc36
commit 2e4e072201

View File

@ -6,6 +6,7 @@ import com.yutou.qqbot.models.Model;
import com.yutou.qqbot.utlis.AppTools; import com.yutou.qqbot.utlis.AppTools;
import com.yutou.qqbot.utlis.RedisTools; import com.yutou.qqbot.utlis.RedisTools;
import net.mamoe.mirai.event.events.MessageEvent; 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.MessageChainBuilder;
import net.mamoe.mirai.message.data.QuoteReply; 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); RedisTools.set("paopao_sleep_"+AppTools.getToDayTime(),"true",1*60*60);
} }
if(event.getSource().getFromId() == 914520754 && msg.contains("#体力")){ 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);
} }
} }
} }