dev_该合并了 #8

Merged
yutou merged 83 commits from dev_ into master 2024-01-17 17:23:44 +08:00
Showing only changes of commit 6de3f5d738 - Show all commits

View File

@ -38,7 +38,7 @@ public class BiliBiliLive extends Model {
Set<String> biliLive = RedisTools.list_get("bili_live"); Set<String> biliLive = RedisTools.list_get("bili_live");
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
for (String id : biliLive) { 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"); builder.append("BiliLiveSign ").append(id).append(":").append(sign).append("\n");
} }
QQBotManager.getInstance().sendMessage(qq, builder.toString()); 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)) { if (!msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_SEND) && !msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_DEL)) {
return; return;
} }
if(msg.equals(QQGroupCommands.BILI_LIVE_DANMU_SEND+"debug")){
onTime(qq,"00:01:00");
return;
}
StringBuilder message; StringBuilder message;
message = new StringBuilder(); message = new StringBuilder();
try { try {