管理员模块:支持this关键词标识本群

This commit is contained in:
Yutousama 2022-04-17 15:51:34 +08:00
parent a1831163cc
commit 9d88fef157

View File

@ -125,10 +125,14 @@ public class AdminMessage extends Message {
if (msgGroup.length == 1) {
QQBotManager.getInstance().sendMessage(qq, "使用方法:" + QQCommands.MODEL_DEL + " [qqnumber] 模块 用&分割");
} else {
String qqGroup=msgGroup[1];
if("this".equals(qqGroup)){
qqGroup=sendQQ+"";
}
if (msgGroup.length <= 2) {
delModel(msgGroup[1], null);
delModel(qqGroup, null);
} else {
delModel(msgGroup[1], msgGroup[2]);
delModel(qqGroup, msgGroup[2]);
}
}
}