diff --git a/pom.xml b/pom.xml index 8e49f6c..502bd33 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 org.springframework.boot @@ -22,10 +22,6 @@ spring-boot-starter-itbaima-robot 1.0.2 - - - - org.springframework.boot spring-boot-starter-web @@ -36,10 +32,10 @@ spring-boot-starter-test test - - org.springframework.boot - spring-boot-starter-actuator - + + org.springframework.boot + spring-boot-starter-actuator + org.mybatis.spring.boot mybatis-spring-boot-starter @@ -50,7 +46,7 @@ mysql-connector-java 8.0.31 - + diff --git a/robot-data/cache/account.secrets b/robot-data/cache/account.secrets index 5efe46b..52cd0fb 100644 Binary files a/robot-data/cache/account.secrets and b/robot-data/cache/account.secrets differ diff --git a/robot-data/cache/contacts/groups/1033597003.json b/robot-data/cache/contacts/groups/1033597003.json index 368c1f1..246e62a 100644 --- a/robot-data/cache/contacts/groups/1033597003.json +++ b/robot-data/cache/contacts/groups/1033597003.json @@ -1,5 +1,5 @@ { - "troopMemberNumSeq": 43, + "troopMemberNumSeq": 44, "list": [ { "uin": 308853450, @@ -11,12 +11,13 @@ "muteTimestamp": 1684289748, "anonymousId": null, "joinTimestamp": 1601451568, - "lastSpeakTimestamp": 1719206847, + "lastSpeakTimestamp": 1719286816, "isOfficialBot": false, "rank": 4, - "point": 591, + "point": 584, "honors": [ - 3 + 3, + 1 ], "temperature": 100 }, @@ -44,16 +45,15 @@ "remark": "", "nameCard": "群HR,正在招聘致命公司员工", "specialTitle": "", - "muteTimestamp": 1719111694, + "muteTimestamp": 1719246400, "anonymousId": null, "joinTimestamp": 1601451568, - "lastSpeakTimestamp": 1719206546, + "lastSpeakTimestamp": 1719289622, "isOfficialBot": false, "rank": 2, - "point": 458, + "point": 446, "honors": [ - 3, - 1 + 3 ], "temperature": 100 }, @@ -67,13 +67,30 @@ "muteTimestamp": 0, "anonymousId": null, "joinTimestamp": 1695304770, - "lastSpeakTimestamp": 1719196581, + "lastSpeakTimestamp": 1719279137, "isOfficialBot": false, "rank": 1, "point": 0, "honors": [], "temperature": 99 }, + { + "uin": 1143469218, + "nick": "我不是数字生命", + "permission": "MEMBER", + "remark": "我不是数字生命", + "nameCard": "", + "specialTitle": "", + "muteTimestamp": 0, + "anonymousId": null, + "joinTimestamp": 1719289606, + "lastSpeakTimestamp": 1719289606, + "isOfficialBot": false, + "rank": 1, + "point": 0, + "honors": [], + "temperature": 0 + }, { "uin": 1368740141, "nick": "小豆泥", @@ -101,7 +118,7 @@ "muteTimestamp": 1639379023, "anonymousId": null, "joinTimestamp": 1636539791, - "lastSpeakTimestamp": 1719151328, + "lastSpeakTimestamp": 1719279066, "isOfficialBot": false, "rank": 1, "point": 0, @@ -120,10 +137,10 @@ "muteTimestamp": 0, "anonymousId": null, "joinTimestamp": 1601451568, - "lastSpeakTimestamp": 1719201483, + "lastSpeakTimestamp": 1719284297, "isOfficialBot": false, "rank": 2, - "point": 118, + "point": 116, "honors": [], "temperature": 100 } diff --git a/robot-data/cache/servers.json b/robot-data/cache/servers.json index 7e743b0..bfee44b 100644 --- a/robot-data/cache/servers.json +++ b/robot-data/cache/servers.json @@ -1,42 +1,42 @@ [ + { + "host": "39.156.140.102", + "port": 14000 + }, { "host": "msfwifi.3g.qq.com", "port": 8080 }, + { + "host": "39.156.140.250", + "port": 80 + }, + { + "host": "120.232.27.24", + "port": 8080 + }, + { + "host": "36.155.205.252", + "port": 8080 + }, + { + "host": "39.156.125.20", + "port": 443 + }, + { + "host": "36.155.245.16", + "port": 80 + }, { "host": "120.232.65.165", "port": 14000 }, { - "host": "36.155.197.218", - "port": 80 - }, - { - "host": "111.30.187.201", + "host": "39.156.126.229", "port": 443 }, { - "host": "39.156.125.20", - "port": 80 - }, - { - "host": "36.155.163.117", - "port": 8080 - }, - { - "host": "36.155.207.230", - "port": 443 - }, - { - "host": "39.156.126.247", - "port": 443 - }, - { - "host": "39.156.140.102", - "port": 14000 - }, - { - "host": "120.233.17.147", + "host": "36.155.166.28", "port": 8080 } ] \ No newline at end of file diff --git a/robot-data/cache/session.bin b/robot-data/cache/session.bin index de56e58..9cfe72c 100644 --- a/robot-data/cache/session.bin +++ b/robot-data/cache/session.bin @@ -1,2 +1,3 @@ -hIZn\:W TACԌ뮽f|4%DEu?~yXb)e-/B,x]ؿ16 .TSf)#ajzf4AwRKZkGSHJV ? ? ЄP"H" " ϰ" D \ No newline at end of file +hj:8PL)/ W=;ا_TU1WeÂxeQe4#l'}Yǖ[=gq, {: +;?oҍ}
" + "今日群聊1违禁消息:[" + RecallMessageListener.group1InvalidCount + "]条
" + "今日群聊2违禁消息:[" + RecallMessageListener.group2InvalidCount + "]条
" + - "今日群聊1违禁超过5次QQ号名单:" + RecallMessageListener.group1InvalidMember + "
" + - "今日群聊2违禁超过5次QQ号名单" + RecallMessageListener.group2InvalidMember + "

" + + "今日群聊1违禁超过5次名单:" + RecallMessageListener.group1InvalidMember + "
" + + "今日群聊2违禁超过5次名单:" + RecallMessageListener.group2InvalidMember + "

" + "今日机器人被骚扰次数:[" + ReceiveGroupListener.receiveCount + "]
" + - "今日钓鱼次数:[" + fishListener.fishCount + "]
"; + "今日钓鱼次数:[" + fishListener.fishCount + "]

" + + "返回标题页面"; } - } diff --git a/src/main/java/com/mtz/qqbot/Listener/RecallMessageListener.java b/src/main/java/com/mtz/qqbot/Listener/RecallMessageListener.java index 95a17fe..6acb242 100644 --- a/src/main/java/com/mtz/qqbot/Listener/RecallMessageListener.java +++ b/src/main/java/com/mtz/qqbot/Listener/RecallMessageListener.java @@ -17,9 +17,9 @@ public class RecallMessageListener extends MessageListener { public static int group2InvalidCount = 0; public Map group1MemberInvalidedCountList = new HashMap(); - public static List group1InvalidMember = new ArrayList(); + public static List group1InvalidMember = new ArrayList(); public Map group2MemberInvalidedCountList = new HashMap(); - public static List group2InvalidMember = new ArrayList(); + public static List group2InvalidMember = new ArrayList(); public RecallMessageListener() { super(List.of("原神", "OP"), true);//自定义违禁词 diff --git a/src/main/java/com/mtz/qqbot/Tool/invalidMember.java b/src/main/java/com/mtz/qqbot/Tool/invalidMember.java index cdae99b..a6ab1ce 100644 --- a/src/main/java/com/mtz/qqbot/Tool/invalidMember.java +++ b/src/main/java/com/mtz/qqbot/Tool/invalidMember.java @@ -15,9 +15,9 @@ public class invalidMember { } } - public static void invalidMemberList(List groupInvalidMember, Map groupMemberInvalidedCountList, GroupMessageEvent event) { + public static void invalidMemberList(List groupInvalidMember, Map groupMemberInvalidedCountList, GroupMessageEvent event) { if (groupMemberInvalidedCountList.get(event.getSender().getId()).equals(5)) { - groupInvalidMember.add(event.getSender().getId()); + groupInvalidMember.add(event.getSenderName()); } } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 9c1984b..97e1223 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -22,9 +22,6 @@ spring: url: jdbc:mysql://localhost:3306/database username: root password: 123456 -# thymeleaf: -# suffix: .html -# prefix: classpath:/templates/ server: port: 8080 \ No newline at end of file diff --git a/src/main/resources/static/image/200px-后藤独头贴.png b/src/main/resources/static/image/200px-后藤独头贴.png new file mode 100644 index 0000000..2d28734 Binary files /dev/null and b/src/main/resources/static/image/200px-后藤独头贴.png differ diff --git a/src/main/resources/static/image/好友发送消息2.png b/src/main/resources/static/image/好友发送消息2.png new file mode 100644 index 0000000..3c43a6a Binary files /dev/null and b/src/main/resources/static/image/好友发送消息2.png differ diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index a94d655..740da8e 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -1,4 +1,4 @@ - + @@ -211,8 +247,8 @@
-

 Q3:mirai框架的QQ机器人,区别于其他框架机器人的亮点有哪些?

-

mirai框架发展时间,技术更成熟,现有的更好的qq机器人框架都是在mirai基础上进行迭代更新的,所以对qq机器人的框架学习更有帮助;

+

 Q3:mirai框架的QQ机器人,区别于其他QQ机器人的亮点有哪些?

+

mirai框架发展时间长,技术更成熟,现有的更好的QQ机器人框架都是在mirai基础上进行迭代升级的,所以对QQ机器人的框架学习更有帮助

@@ -247,7 +283,7 @@ -

在群中发送“111”字样即可让robot“稍微的”理你一下

+

在群中发送“111”字样即可让bot“稍微的”理你一下

@@ -265,7 +301,7 @@ #03 临时会话回复
- +

在群聊中对bot进行临时会话,管理员便可在控制台进行回复

@@ -275,6 +311,7 @@ #04 好友消息回复
+

bot的好友发起聊天后,管理员便可以在控制台进行回复

@@ -306,8 +343,8 @@
-

在群中发送消息带有某个“**启动”“OP”等违禁词即可喜提“60S”禁言+撤回大礼包

‘ -

偷偷告送你,分开输入的话笨蛋robot是检测不出来的

+

在群中发送消息带有“原神启动”“OP”等违禁词即可喜提“60S”禁言+撤回大礼包

‘ +

偷偷告诉你,分开输入的话笨蛋bot是检测不出来的

@@ -320,7 +357,9 @@

此外还可以在下表中查看群聊消息统计数据

- 群聊信息统计表 +