From bdb7d08622678880f0c939461e1b5d367cbaf979 Mon Sep 17 00:00:00 2001
From: Yutousama <583819556@qq.com>
Date: Thu, 7 Apr 2022 13:08:58 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0pom.xml=20=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0qq=E5=92=8Cnas=E6=9C=8D=E5=8A=A1=E7=9A=84?=
=?UTF-8?q?=E6=8C=87=E4=BB=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 22 +++++--------------
.../qqbot/MessageEvent/AdminMessage.java | 14 ++++++++++++
2 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/pom.xml b/pom.xml
index 70a222b..c5fa807 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,39 +35,33 @@
net.mamoe
mirai-core-jvm
- 2.9.1
+ 2.10.0
org.jetbrains.kotlinx
kotlinx-coroutines-jdk8
- 1.5.2
+ 1.6.0-native-mt
org.jetbrains.kotlinx
kotlinx-coroutines-core-jvm
- 1.5.2
+ 1.6.0-native-mt
redis.clients
jedis
- 3.6.0-RC1
+ 4.2.0
-
-
- org.springframework.data
- spring-data-redis
- 2.4.7
-
com.alibaba
fastjson
- 1.2.79
+ 1.2.80
@@ -166,12 +160,6 @@
repackage
-
-
- X:\servier\qqbot\
-
-
-
diff --git a/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java b/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java
index d08cb15..f5dee39 100644
--- a/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java
+++ b/src/main/java/com/yutou/qqbot/MessageEvent/AdminMessage.java
@@ -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("开始签到");