更新pom.xml

新增更新qq和nas服务的指令
This commit is contained in:
Yutousama 2022-04-07 13:08:58 +08:00
parent f825302b5f
commit bdb7d08622
2 changed files with 19 additions and 17 deletions

22
pom.xml
View File

@ -35,39 +35,33 @@
<dependency>
<groupId>net.mamoe</groupId>
<artifactId>mirai-core-jvm</artifactId>
<version>2.9.1</version>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-jdk8</artifactId>
<version>1.5.2</version>
<version>1.6.0-native-mt</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
<version>1.5.2</version>
<version>1.6.0-native-mt</version>
</dependency>
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.6.0-RC1</version>
<version>4.2.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-redis -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>2.4.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.79</version>
<version>1.2.80</version>
</dependency>
<dependency>
@ -166,12 +160,6 @@
<goal>repackage</goal>
</goals>
<configuration>
<outputDirectory>
X:\servier\qqbot\
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

View File

@ -25,6 +25,9 @@ public class AdminMessage extends Message {
public static final String SYSTEM_RESTART_QQ="!重启qq";
public static final String SYSTEM_RESTART_TOOLS="!重启服务";
public static final String SYSTEM_UPDATE_QQ="!更新qq";
public static final String SYSTEM_UPDATE_NAS="!更新服务";
private static final String SHOW="!列表";
private static final String HELP="!help";
@ -143,6 +146,17 @@ public class AdminMessage extends Message {
System.out.println("结束进程");
AppTools.exec("cd /home/yutou/public/servier/tools && ./start.sh",null,true,false);
}
case QQCommands.SYSTEM_UPDATE_QQ ->{
QQBotManager.getInstance().sendMessage(qq,"正在更新qq");
System.out.println("结束进程");
AppTools.exec("cd /home/yutou/git/QQBot && ./update.sh",null,true,false);
}
case QQCommands.SYSTEM_UPDATE_NAS ->{
QQBotManager.getInstance().sendMessage(qq,"正在更新NAS服务");
System.out.println("结束进程");
AppTools.exec("cd /home/yutou/git/nas-service && ./update.sh",null,true,false);
}
case QQCommands.SIGN -> {
boolean sign=true;
Log.i("开始签到");