Skip to content

Commit 8e57f65

Browse files
committed
First modified QQServer.java and changed robot's name
1 parent 7b5613c commit 8e57f65

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
target/
22
*.log
3-
qrcode.png

src/main/java/org/b3log/xiaov/service/QQService.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,13 @@ public void onQQGroupMessage(final GroupMessage message) {
577577
}
578578

579579
final long now = System.currentTimeMillis();
580-
580+
/*
581581
if (now - latestAdTime > 1000 * 60 * 30) {
582582
msg = msg + "\n\n(" + ADS.get(RandomUtils.nextInt(ADS.size())) + ")";
583583
584584
GROUP_AD_TIME.put(groupId, now);
585585
}
586+
*/
586587
}
587588

588589
sendMessageToGroup(groupId, msg);
@@ -618,12 +619,14 @@ public void onQQDiscussMessage(final DiscussMessage message) {
618619
}
619620

620621
final long now = System.currentTimeMillis();
621-
622+
623+
/*
622624
if (now - latestAdTime > 1000 * 60 * 30) {
623625
msg = msg + "\n\n(" + ADS.get(RandomUtils.nextInt(ADS.size())) + ")";
624626
625627
DISCUSS_AD_TIME.put(discussId, now);
626628
}
629+
*/
627630
}
628631

629632
sendMessageToDiscuss(discussId, msg);

src/main/resources/xiaov.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ baidu.cookie=BAIDUID=AEF3B42930F61A2C97ACB1D45C860D79:FG=1; BIDUPSID=AEF3B42930F
2727

2828
# 1: Turing Bot, 2: Baidu Bot
2929
qq.bot.type=1
30-
qq.bot.name=\u5c0f\u8587
30+
qq.bot.name=\u70e7\u997c
3131
qq.bot.key=123456
3232
qq.bot.pushGroups=*
3333
#qq.bot.pushGroups=Java\u5f00\u6e90B3log,QQ Bot \u6d4b\u8bd5,node.js,Java \u5f00\u6e90\u535a\u5ba2 Solo

0 commit comments

Comments
 (0)