feature:加入读取鬼鬼API 黑丝视频功能
This commit is contained in:
@@ -74,7 +74,7 @@ class BotVideo:
|
|||||||
return
|
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
|
return
|
||||||
try:
|
try:
|
||||||
file_abspath = self.download_stream("https://api.guiguiya.com/api/hook/heisis", "down_load_dir")
|
file_abspath = self.download_stream("https://api.guiguiya.com/api/hook/heisis", "down_load_dir")
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class Feature(Enum):
|
|||||||
MUSIC = 10, "点歌功能"
|
MUSIC = 10, "点歌功能"
|
||||||
SIGNIN = 11, "签到功能"
|
SIGNIN = 11, "签到功能"
|
||||||
POINT_TRADE = 12, "积分赠送功能"
|
POINT_TRADE = 12, "积分赠送功能"
|
||||||
MOVIES = 14, "视频点播功能"
|
VIDEO = 14, "视频点播功能"
|
||||||
|
|
||||||
|
|
||||||
def __new__(cls, value, description):
|
def __new__(cls, value, description):
|
||||||
|
|||||||
Reference in New Issue
Block a user