开发第一阶段完毕
This commit is contained in:
parent
e8443dd1b6
commit
f74d9309be
16
pom.xml
16
pom.xml
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@ -22,10 +22,6 @@
|
||||
<artifactId>spring-boot-starter-itbaima-robot</artifactId>
|
||||
<version>1.0.2</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||
<!-- <artifactId>spring-boot-starter-thymeleaf</artifactId>-->
|
||||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
@ -36,10 +32,10 @@
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
@ -50,7 +46,7 @@
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.31</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
BIN
robot-data/cache/account.secrets
vendored
BIN
robot-data/cache/account.secrets
vendored
Binary file not shown.
43
robot-data/cache/contacts/groups/1033597003.json
vendored
43
robot-data/cache/contacts/groups/1033597003.json
vendored
@ -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
|
||||
}
|
||||
|
||||
52
robot-data/cache/servers.json
vendored
52
robot-data/cache/servers.json
vendored
@ -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
|
||||
}
|
||||
]
|
||||
3
robot-data/cache/session.bin
vendored
3
robot-data/cache/session.bin
vendored
@ -1,2 +1,3 @@
|
||||
|
||||
hI©ÚZn\ü:œWÎûÄÕTµîÄäACÔŒ‡¹ë®½fø£|”4%‘DEu?Ë~yXb³û•¨×)ñ<>e-¾/û¦‡—ùBÄ,x]<05>³„ü³¤Ø¿ð1íØ6ü
.¿TŠƒ¾Sf)#ajzf4AwRKZkGSHJV §¸®¤<10>? øÐãÀ<10>?
ïüЄûÿÿÿÿP¤¶ªæøÿÿÿÿ»"H•ÿÿÿÿÿ»" ¤¶‚§»" øÒϰ»" D»
|
||||
häj:8PïÚÞL)/… W›†=ÂÅ;ïØ§š_ËôTU1É®WÍÐêÖeÂx½e<C2BD>Q¯½e°4#lî'}…ÃÞY÷Ç–‡ðµ[´=gqÇ,†
‹Ú{ô:
|
||||
;?ÐöëoÒ<6F>‡¼}<I¶(p546yVccYIcPkmTuï¼Ô¥ùÿÿÿÿ<10>?øÐÿàüÿÿÿÿ<10>?
ᄂþøÿÿÿÿP ¤¶ÂÆ»"H•ÿÿÿÿÿ»"¤¶Ö†øÿÿÿÿ»" øÐ‹”»" D»
|
||||
@ -18,10 +18,10 @@ public class listController {
|
||||
"今日收到的群聊临时会话消息:[" + HandleMessageListener.groupTempMessageCount + "]条<br><br>" +
|
||||
"今日群聊1违禁消息:[" + RecallMessageListener.group1InvalidCount + "]条<br>" +
|
||||
"今日群聊2违禁消息:[" + RecallMessageListener.group2InvalidCount + "]条<br>" +
|
||||
"今日群聊1违禁超过5次QQ号名单:" + RecallMessageListener.group1InvalidMember + "<br>" +
|
||||
"今日群聊2违禁超过5次QQ号名单" + RecallMessageListener.group2InvalidMember + "<br><br>" +
|
||||
"今日群聊1违禁超过5次名单:" + RecallMessageListener.group1InvalidMember + "<br>" +
|
||||
"今日群聊2违禁超过5次名单:" + RecallMessageListener.group2InvalidMember + "<br><br>" +
|
||||
"今日机器人被骚扰次数:[" + ReceiveGroupListener.receiveCount + "]<br>" +
|
||||
"今日钓鱼次数:[" + fishListener.fishCount + "]<br>";
|
||||
"今日钓鱼次数:[" + fishListener.fishCount + "]<br><br>" +
|
||||
"<a href='index.html'>返回标题页面</a>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -17,9 +17,9 @@ public class RecallMessageListener extends MessageListener {
|
||||
public static int group2InvalidCount = 0;
|
||||
|
||||
public Map<Long, Integer> group1MemberInvalidedCountList = new HashMap<Long, Integer>();
|
||||
public static List<Long> group1InvalidMember = new ArrayList<Long>();
|
||||
public static List<String> group1InvalidMember = new ArrayList<String>();
|
||||
public Map<Long, Integer> group2MemberInvalidedCountList = new HashMap<Long, Integer>();
|
||||
public static List<Long> group2InvalidMember = new ArrayList<Long>();
|
||||
public static List<String> group2InvalidMember = new ArrayList<String>();
|
||||
|
||||
public RecallMessageListener() {
|
||||
super(List.of("原神", "OP"), true);//自定义违禁词
|
||||
|
||||
@ -15,9 +15,9 @@ public class invalidMember {
|
||||
}
|
||||
}
|
||||
|
||||
public static void invalidMemberList(List<Long> groupInvalidMember, Map<Long, Integer> groupMemberInvalidedCountList, GroupMessageEvent event) {
|
||||
public static void invalidMemberList(List<String> groupInvalidMember, Map<Long, Integer> groupMemberInvalidedCountList, GroupMessageEvent event) {
|
||||
if (groupMemberInvalidedCountList.get(event.getSender().getId()).equals(5)) {
|
||||
groupInvalidMember.add(event.getSender().getId());
|
||||
groupInvalidMember.add(event.getSenderName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,9 +22,6 @@ spring:
|
||||
url: jdbc:mysql://localhost:3306/database
|
||||
username: root
|
||||
password: 123456
|
||||
# thymeleaf:
|
||||
# suffix: .html
|
||||
# prefix: classpath:/templates/
|
||||
|
||||
server:
|
||||
port: 8080
|
||||
BIN
src/main/resources/static/image/200px-后藤独头贴.png
Normal file
BIN
src/main/resources/static/image/200px-后藤独头贴.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
BIN
src/main/resources/static/image/好友发送消息2.png
Normal file
BIN
src/main/resources/static/image/好友发送消息2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
@ -1,4 +1,4 @@
|
||||
<html><html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
@ -43,14 +43,26 @@
|
||||
max-width: 580px;
|
||||
}
|
||||
.各集内容 img {
|
||||
width: 254px;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.各集内容 p {
|
||||
font-size: 16.8px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.各集内容 .黑幕 {
|
||||
background-color: #252525;
|
||||
color: #252525;
|
||||
transition: 0.13s linear;
|
||||
font-size: 16.8px;
|
||||
}
|
||||
.各集内容 .黑幕:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#艺术字 {
|
||||
margin-left: 105px;
|
||||
}
|
||||
#艺术字 .艺术字 {
|
||||
width: 50%;
|
||||
color: #36c0b9;
|
||||
@ -101,7 +113,7 @@
|
||||
font-weight: bold;
|
||||
unicode-bidi: isolate;
|
||||
}
|
||||
p{
|
||||
p {
|
||||
display: block;
|
||||
margin-block-start: 1em;
|
||||
margin-block-end: 1em;
|
||||
@ -109,6 +121,16 @@
|
||||
margin-inline-end: 0px;
|
||||
unicode-bidi: isolate;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #3f51b5;
|
||||
}
|
||||
a:active,a:visited:active {
|
||||
color: orange;
|
||||
}
|
||||
a:visited {
|
||||
color: #0b0080;
|
||||
}
|
||||
#事先声明 {
|
||||
color: rgb(70, 70, 70);
|
||||
font-size: small;
|
||||
@ -172,6 +194,20 @@
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
.imgBox {
|
||||
display: inline-block;
|
||||
width: 113px;
|
||||
height: 122px;
|
||||
text-align: center;
|
||||
transition: 0.25s;
|
||||
}
|
||||
.imgBox:hover {
|
||||
opacity: 0.70;
|
||||
}
|
||||
.imgBox img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@ -211,8 +247,8 @@
|
||||
</div>
|
||||
<div id="作品简介3">
|
||||
<div class="大圆角标签3"></div>
|
||||
<h2> Q3:mirai框架的QQ机器人,区别于其他框架机器人的亮点有哪些?</h2>
|
||||
<p>mirai框架发展时间,技术更成熟,现有的更好的qq机器人框架都是在mirai基础上进行迭代更新的,所以对qq机器人的框架学习更有帮助;</P>
|
||||
<h2> Q3:mirai框架的QQ机器人,区别于其他QQ机器人的亮点有哪些?</h2>
|
||||
<p>mirai框架发展时间长,技术更成熟,现有的更好的QQ机器人框架都是在mirai基础上进行迭代升级的,所以对QQ机器人的框架学习更有帮助</P>
|
||||
|
||||
</div>
|
||||
<div id="作品简介4">
|
||||
@ -247,7 +283,7 @@
|
||||
<img src="image/骚扰机器人.png">
|
||||
|
||||
|
||||
<p>在群中发送“111”字样即可让robot“稍微的”理你一下</p>
|
||||
<p>在群中发送“111”字样即可让bot“稍微的”理你一下</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="各集内容">
|
||||
@ -265,7 +301,7 @@
|
||||
<span>#03 临时会话回复</span>
|
||||
<div class="内容">
|
||||
<img src="image/临时会话1.png">
|
||||
<img src="/image/临时会话2.png">
|
||||
<img src="image/临时会话2.png">
|
||||
|
||||
|
||||
<p>在群聊中对bot进行临时会话,管理员便可在控制台进行回复</p>
|
||||
@ -275,6 +311,7 @@
|
||||
<span>#04 好友消息回复</span>
|
||||
<div class="内容">
|
||||
<img src="image/好友发送消息.jpg">
|
||||
<img src="image/好友发送消息2.png">
|
||||
|
||||
<p>bot的好友发起聊天后,管理员便可以在控制台进行回复</p>
|
||||
|
||||
@ -306,8 +343,8 @@
|
||||
<div class="内容">
|
||||
<img src="image/原神1.png">
|
||||
<img src="image/原神2.png">
|
||||
<p>在群中发送消息带有某个“**启动”“OP”等违禁词即可喜提“60S”禁言+撤回大礼包</p>‘
|
||||
<p>偷偷告送你,分开输入的话笨蛋robot是检测不出来的</p>
|
||||
<p>在群中发送消息带有“<span class="黑幕" title="你知道的太多了">原神</span>启动”“<span class="黑幕" title="你知道的太多了">OP</span>”等违禁词即可喜提“60S”禁言+撤回大礼包</p>‘
|
||||
<p>偷偷告诉你,分开输入的话笨蛋bot是检测不出来的</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="各集内容">
|
||||
@ -320,7 +357,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<p>此外还可以在下表中查看群聊消息统计数据</p>
|
||||
<a href="messagelist">群聊信息统计表</a>
|
||||
<div class="imgBox">
|
||||
<a href="messagelist" title="后藤一里"><img src="image/200px-后藤独头贴.png">点我查看bot统计信息</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user