This commit is contained in:
yutou
2020-12-22 14:53:05 +08:00
parent e5a7f5a878
commit 2ca408cabe
2 changed files with 24 additions and 15 deletions

View File

@@ -116,12 +116,12 @@ public class QQBotManager {
public ListeningStatus onGroupMessage(GroupMessageEvent event) {
if (event.getGroup().getId() == qqGroup) {
String msg = event.getMessage().contentToString();
msg = msg.replace("", "!");
msg = msg.replace("", "!").toLowerCase();
switch (msg) {
case "!开机":
RedisTools.Consumer.system("openPC", null);
break;
case "!更新IP":
case "!更新ip":
RedisTools.Consumer.system("updateIP", null);
break;
case "!ip":