更新pom.xml
新增更新qq和nas服务的指令
This commit is contained in:
parent
f825302b5f
commit
bdb7d08622
22
pom.xml
22
pom.xml
@ -35,39 +35,33 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.mamoe</groupId>
|
<groupId>net.mamoe</groupId>
|
||||||
<artifactId>mirai-core-jvm</artifactId>
|
<artifactId>mirai-core-jvm</artifactId>
|
||||||
<version>2.9.1</version>
|
<version>2.10.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlinx</groupId>
|
<groupId>org.jetbrains.kotlinx</groupId>
|
||||||
<artifactId>kotlinx-coroutines-jdk8</artifactId>
|
<artifactId>kotlinx-coroutines-jdk8</artifactId>
|
||||||
<version>1.5.2</version>
|
<version>1.6.0-native-mt</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlinx</groupId>
|
<groupId>org.jetbrains.kotlinx</groupId>
|
||||||
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
|
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
|
||||||
<version>1.5.2</version>
|
<version>1.6.0-native-mt</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
|
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>redis.clients</groupId>
|
<groupId>redis.clients</groupId>
|
||||||
<artifactId>jedis</artifactId>
|
<artifactId>jedis</artifactId>
|
||||||
<version>3.6.0-RC1</version>
|
<version>4.2.0</version>
|
||||||
</dependency>
|
</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 -->
|
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>fastjson</artifactId>
|
<artifactId>fastjson</artifactId>
|
||||||
<version>1.2.79</version>
|
<version>1.2.80</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -166,12 +160,6 @@
|
|||||||
<goal>repackage</goal>
|
<goal>repackage</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>
|
|
||||||
X:\servier\qqbot\
|
|
||||||
</outputDirectory>
|
|
||||||
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -25,6 +25,9 @@ public class AdminMessage extends Message {
|
|||||||
public static final String SYSTEM_RESTART_QQ="!重启qq";
|
public static final String SYSTEM_RESTART_QQ="!重启qq";
|
||||||
public static final String SYSTEM_RESTART_TOOLS="!重启服务";
|
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 SHOW="!列表";
|
||||||
private static final String HELP="!help";
|
private static final String HELP="!help";
|
||||||
@ -143,6 +146,17 @@ public class AdminMessage extends Message {
|
|||||||
System.out.println("结束进程");
|
System.out.println("结束进程");
|
||||||
AppTools.exec("cd /home/yutou/public/servier/tools && ./start.sh",null,true,false);
|
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 -> {
|
case QQCommands.SIGN -> {
|
||||||
boolean sign=true;
|
boolean sign=true;
|
||||||
Log.i("开始签到");
|
Log.i("开始签到");
|
||||||
|
Loading…
Reference in New Issue
Block a user