From eb12bcb454e4d48d756863c5b1408e95e917f3b0 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 5 Mar 2025 16:32:53 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=E5=8A=A0=E5=85=A5=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E9=AC=BC=E9=AC=BCAPI=20=E9=BB=91=E4=B8=9D=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- group_video/bot_video.py | 2 +- robot_cmd/robot_command.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):