From 1b7eb5ac446fc0e1a87b369968554ff63a0f9079 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 22 Jan 2026 17:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=96=97=E9=B1=BC=E5=BC=80?= =?UTF-8?q?=E6=92=AD=E4=B8=8B=E6=92=AD=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/douyu/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/douyu/main.py b/plugins/douyu/main.py index c74a2e4..903d76a 100644 --- a/plugins/douyu/main.py +++ b/plugins/douyu/main.py @@ -114,6 +114,7 @@ class DouyuPlugin(MessagePluginInterface): self._api_template = "https://www.douyu.com/betard/{room_id}" self._user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" self._check_interval = 5 + async_job.every_minutes(self._check_interval)(self._scheduled_check_job) def initialize(self, context: Dict[str, Any]) -> bool: try: @@ -124,7 +125,6 @@ class DouyuPlugin(MessagePluginInterface): self._api_template = cfg.get("api_url_template", self._api_template) self._user_agent = cfg.get("user_agent", self._user_agent) self._check_interval = int(cfg.get("check_interval_minutes", self._check_interval)) - async_job.every_minutes(self._check_interval)(self._scheduled_check_job) return True except Exception as e: logger.error(f"{self.name} 初始化失败: {e}") @@ -148,7 +148,6 @@ class DouyuPlugin(MessagePluginInterface): return False @plugin_stats_decorator(plugin_name="斗鱼直播") - @plugin_points_cost(1, "斗鱼提醒消耗积分", FEATURE_KEY) async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]: content = str(message.get("content", "")).strip() sender = message.get("sender")