diff --git a/src/main/java/com/yutou/nas/utils/QQBotManager.java b/src/main/java/com/yutou/nas/utils/QQBotManager.java index ee160f6..0053c77 100644 --- a/src/main/java/com/yutou/nas/utils/QQBotManager.java +++ b/src/main/java/com/yutou/nas/utils/QQBotManager.java @@ -30,6 +30,7 @@ public class QQBotManager { private static class QQCommands { private final static String QQ_HELP = "!help"; + private final static String QQ_SYSTEM_STOP = "!stop"; private final static String QQ_UPDATE_IP = "!更新ip"; private final static String QQ_GET_IP = "!ip"; private final static String QQ_OPEN_PC = "!开机"; @@ -255,7 +256,11 @@ public class QQBotManager { case QQCommands.QQ_BT_RELOAD: BTDownloadManager.getInstance().start(); break; - + case QQCommands.QQ_SYSTEM_STOP: + getInstance().sendMessage("正在停止服务"); + System.out.println("结束进程"); + System.exit(0); + break; case QQCommands.QQ_HELP: StringBuilder builder = new StringBuilder(); for (Field field : QQCommands.class.getDeclaredFields()) {