feature:1.点歌功能,2.签到功能
This commit is contained in:
@@ -41,7 +41,7 @@ class BotMusic:
|
|||||||
return
|
return
|
||||||
|
|
||||||
# 如果触发了指令,但是没有权限,则返回权限不足
|
# 如果触发了指令,但是没有权限,则返回权限不足
|
||||||
if self.gbm.get_group_permission(message.roomid, Feature.TASK_GAME) == PermissionStatus.DISABLED:
|
if self.gbm.get_group_permission(message.roomid, Feature.MUSIC) == PermissionStatus.DISABLED:
|
||||||
return
|
return
|
||||||
|
|
||||||
song_name = content[len(command[0]):].strip()
|
song_name = content[len(command[0]):].strip()
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ class Feature(Enum):
|
|||||||
PIC = 8, "图来能力"
|
PIC = 8, "图来能力"
|
||||||
TASK_GAME = 9, "百科答题游戏"
|
TASK_GAME = 9, "百科答题游戏"
|
||||||
MUSIC = 10, "点歌功能"
|
MUSIC = 10, "点歌功能"
|
||||||
|
SIGNIN = 11, "签到功能"
|
||||||
|
|
||||||
def __new__(cls, value, description):
|
def __new__(cls, value, description):
|
||||||
obj = object.__new__(cls)
|
obj = object.__new__(cls)
|
||||||
|
|||||||
Reference in New Issue
Block a user