From 6de3f5d738da9fc3255d7e2d946e8670aeccc2d7 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sat, 15 Oct 2022 11:10:46 +0800 Subject: [PATCH] fix int.parseInt --- .../java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java b/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java index 3749cb5..f902914 100644 --- a/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java +++ b/src/main/java/com/yutou/qqbot/models/BiliBili/BiliBiliLive.java @@ -38,7 +38,7 @@ public class BiliBiliLive extends Model { Set biliLive = RedisTools.list_get("bili_live"); StringBuilder builder = new StringBuilder(); for (String id : biliLive) { - boolean sign = BiliBiliUtils.sendLiveDanmu(Integer.getInteger(id), "打卡"); + boolean sign = BiliBiliUtils.sendLiveDanmu(Integer.parseInt(id), "打卡"); builder.append("BiliLiveSign ").append(id).append(":").append(sign).append("\n"); } QQBotManager.getInstance().sendMessage(qq, builder.toString()); @@ -51,6 +51,10 @@ public class BiliBiliLive extends Model { if (!msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_SEND) && !msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_DEL)) { return; } + if(msg.equals(QQGroupCommands.BILI_LIVE_DANMU_SEND+"debug")){ + onTime(qq,"00:01:00"); + return; + } StringBuilder message; message = new StringBuilder(); try {