设置京东调整
This commit is contained in:
@@ -235,12 +235,10 @@ class JDTokenPlugin(MessagePluginInterface):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
content = str(message.get("content", "")).strip()
|
content = str(message.get("content", "")).strip()
|
||||||
roomid = message.get("roomid", "")
|
command = content.split(" ")[0]
|
||||||
|
|
||||||
if GroupBotManager.get_group_permission(roomid, self.feature) == PermissionStatus.DISABLED:
|
return command in self._commands
|
||||||
return False
|
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
||||||
@plugin_stats_decorator(plugin_name="京东签到Token设置")
|
@plugin_stats_decorator(plugin_name="京东签到Token设置")
|
||||||
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user