chore: 移除过时的兼容性处理代码

This commit is contained in:
RockChinQ
2024-01-18 00:52:29 +08:00
parent aa433bd5ab
commit 5bbc38a7a3
8 changed files with 22 additions and 85 deletions
-4
View File
@@ -39,8 +39,6 @@ class DefaultCommand(aamgr.AbstractCommandNode):
reply_str += "\n当前默认情景预设:{}\n".format(dprompt.mode_inst().get_using_name())
reply_str += "请使用 !default set <情景预设名称> 来设置默认情景预设"
reply = [reply_str]
elif params[0] != "set":
reply = ["[bot]err: 已弃用,请使用!default set <情景预设名称> 来设置默认情景预设"]
else:
return False, []
@@ -69,7 +67,5 @@ class DefaultSetCommand(aamgr.AbstractCommandNode):
reply = ["[bot]已设置默认情景预设为:{}".format(full_name)]
except Exception as e:
reply = ["[bot]err: {}".format(e)]
else:
reply = ["[bot]err: 仅管理员可设置默认情景预设"]
return True, reply