diff --git a/group_video/bot_video.py b/group_video/bot_video.py index c3b84cd..f845c26 100644 --- a/group_video/bot_video.py +++ b/group_video/bot_video.py @@ -74,7 +74,7 @@ class BotVideo: return # 如果触发了指令,但是没有权限,则返回权限不足 - if self.gbm.get_group_permission(message.roomid, Feature.MOVIES) == PermissionStatus.DISABLED: + if self.gbm.get_group_permission(message.roomid, Feature.VIDEO) == PermissionStatus.DISABLED: return try: file_abspath = self.download_stream("https://api.guiguiya.com/api/hook/heisis", "down_load_dir") diff --git a/robot_cmd/robot_command.py b/robot_cmd/robot_command.py index 5da4ca3..b1c49b5 100644 --- a/robot_cmd/robot_command.py +++ b/robot_cmd/robot_command.py @@ -34,7 +34,7 @@ class Feature(Enum): MUSIC = 10, "点歌功能" SIGNIN = 11, "签到功能" POINT_TRADE = 12, "积分赠送功能" - MOVIES = 14, "视频点播功能" + VIDEO = 14, "视频点播功能" def __new__(cls, value, description):