设置京东调整

This commit is contained in:
liuwei
2025-06-10 13:34:56 +08:00
parent 5110f9bd7f
commit 9c4ad81bd1

View File

@@ -235,12 +235,10 @@ class JDTokenPlugin(MessagePluginInterface):
return False
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 False
return command in self._commands
return True
@plugin_stats_decorator(plugin_name="京东签到Token设置")
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]: