临时调整权限模块,备份
This commit is contained in:
@@ -45,6 +45,14 @@ class MessageSignPlugin(MessagePluginInterface):
|
||||
def commands(self) -> List[str]:
|
||||
return self._commands
|
||||
|
||||
@property
|
||||
def feature_key(self) -> Optional[str]:
|
||||
return "SIGN_IN"
|
||||
|
||||
@property
|
||||
def feature_description(self) -> Optional[str]:
|
||||
return "📝 签到功能 [签到]"
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.today_signin_count = {}
|
||||
@@ -57,6 +65,8 @@ class MessageSignPlugin(MessagePluginInterface):
|
||||
"resource", "6 托福-乱序.txt")
|
||||
self.vocab_list = []
|
||||
self.bot: WechatAPIClient = None
|
||||
# 注册功能权限
|
||||
self.feature = self.register_feature()
|
||||
|
||||
def initialize(self, context: Dict[str, Any]) -> bool:
|
||||
"""初始化插件"""
|
||||
|
||||
Reference in New Issue
Block a user