Skip to content
This repository has been archived by the owner on Apr 18, 2021. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 16, 2021
1 parent f0a9378 commit 0641d0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/shrbox/github/acgpro/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public void run() {

getEventListener().subscribeAlways(GroupMessageEvent.class, (GroupMessageEvent e) -> {//监听群消息
if (e.getMessage().contentToString().toLowerCase().contains("acg")) {
if (e.getGroup().getBotMuteRemaining() > 0) return;
if (pullCount > maxPullCount || threadRunning >= maxThread) {
e.getGroup().sendMessage(MessageUtils.newChain(new At(e.getSender())).plus("[ACGPro] 请先喝口水再尝试"));
return;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/shrbox/github/acgpro/Thread.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public void run() {
e.printStackTrace();
}
if (image == null) {
e.getGroup().sendMessage("[ACGPro] 图片下载错误");
Main.threadRunning--;
e.getGroup().sendMessage("[ACGPro] 图片下载错误");
return;
}
e.getGroup().sendMessage("作品标题: " + data.title
Expand Down Expand Up @@ -142,8 +142,8 @@ public void run() {
e.printStackTrace();
}
if (image == null) {
e.getGroup().sendMessage("[ACGPro] 图片下载错误");
Main.threadRunning--;
e.getGroup().sendMessage("[ACGPro] 图片下载错误");
continue;
}
e.getGroup().sendMessage("作品标题: " + data.title + "\nPid: "
Expand Down

0 comments on commit 0641d0e

Please sign in to comment.