开发第一阶段完毕

This commit is contained in:
95478 2024-06-26 08:00:07 +08:00
parent 5b600fec81
commit 48062bccc8
5 changed files with 64 additions and 48 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM openjdk:17-jdk-alpine
ADD ./target/QQ-Bot-0.0.1-SNAPSHOT.jar /app/qq-bot.jar
CMD ["java", "-jar", "app/qq-bot.jar"]
EXPOSE 8080

37
pom.xml
View File

@ -9,13 +9,14 @@
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<groupId>com.mtz</groupId> <groupId>com.mtz</groupId>
<artifactId>QQ-Bot</artifactId> <artifactId>qq-bot</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>QQ-Bot</name> <name>qq-bot</name>
<description>QQ-Bot</description> <description>qq-bot</description>
<properties> <properties>
<java.version>17</java.version> <java.version>17</java.version>
<spring-boot.version>2.6.13</spring-boot.version> <spring-boot.version>2.6.13</spring-boot.version>
<docker.image.prefix>localhost:5000</docker.image.prefix>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
@ -70,7 +71,7 @@
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version> <version>${spring-boot.version}</version>
<configuration> <configuration>
<mainClass>com.example.demo.Demo1Application</mainClass> <mainClass>com.mtz.qqbot.QqBotApplication</mainClass>
<skip>false</skip> <skip>false</skip>
</configuration> </configuration>
<executions> <executions>
@ -82,6 +83,34 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!--maven打包时跳过测试-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!--自动构建镜像到Docker-->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<configuration>
<repository>${docker.image.prefix}/${project.artifactId}</repository>
<tag>${project.version}</tag>
<useMavenSettingsForAuth>false</useMavenSettingsForAuth>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>install</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>

Binary file not shown.

View File

@ -1,5 +1,5 @@
{ {
"troopMemberNumSeq": 124, "troopMemberNumSeq": 125,
"list": [ "list": [
{ {
"uin": 524592968, "uin": 524592968,
@ -25,10 +25,10 @@
"remark": "神明啊把我变成小萝莉吧お願い", "remark": "神明啊把我变成小萝莉吧お願い",
"nameCard": "", "nameCard": "",
"specialTitle": "", "specialTitle": "",
"muteTimestamp": 1719299907, "muteTimestamp": 1719319720,
"anonymousId": null, "anonymousId": null,
"joinTimestamp": 1505138309, "joinTimestamp": 1505138309,
"lastSpeakTimestamp": 1719304649, "lastSpeakTimestamp": 1719319660,
"isOfficialBot": false, "isOfficialBot": false,
"rank": 2, "rank": 2,
"point": 5, "point": 5,
@ -64,7 +64,7 @@
"muteTimestamp": 0, "muteTimestamp": 0,
"anonymousId": null, "anonymousId": null,
"joinTimestamp": 1524301027, "joinTimestamp": 1524301027,
"lastSpeakTimestamp": 1719299835, "lastSpeakTimestamp": 1719319552,
"isOfficialBot": false, "isOfficialBot": false,
"rank": 1, "rank": 1,
"point": 0, "point": 0,
@ -87,23 +87,6 @@
"point": 0, "point": 0,
"honors": [], "honors": [],
"temperature": 6 "temperature": 6
},
{
"uin": 3112576970,
"nick": "-",
"permission": "MEMBER",
"remark": "-",
"nameCard": "",
"specialTitle": "",
"muteTimestamp": 0,
"anonymousId": null,
"joinTimestamp": 1719319470,
"lastSpeakTimestamp": 1719319470,
"isOfficialBot": false,
"rank": 1,
"point": 0,
"honors": [],
"temperature": 0
} }
] ]
} }

View File

@ -1,42 +1,42 @@
[ [
{ {
"host": "39.156.140.102", "host": "111.30.187.201",
"port": 80 "port": 80
}, },
{ {
"host": "36.155.163.51", "host": "111.30.169.83",
"port": 8080
},
{
"host": "120.232.31.250",
"port": 14000 "port": 14000
}, },
{
"host": "39.156.140.250",
"port": 443
},
{
"host": "39.156.125.20",
"port": 443
},
{
"host": "111.30.187.245",
"port": 14000
},
{
"host": "msfwifi.3g.qq.com",
"port": 8080
},
{ {
"host": "36.155.163.66", "host": "36.155.163.66",
"port": 80 "port": 80
}, },
{ {
"host": "120.233.18.186", "host": "36.155.187.225",
"port": 8080 "port": 8080
}, },
{
"host": "120.233.18.186",
"port": 14000
},
{ {
"host": "36.155.205.230", "host": "36.155.205.230",
"port": 8080 "port": 8080
},
{
"host": "111.30.187.201",
"port": 443
},
{
"host": "39.156.126.229",
"port": 443
},
{
"host": "msfwifi.3g.qq.com",
"port": 8080
},
{
"host": "120.233.17.156",
"port": 8080
} }
] ]