From f5932a301e177a86b1e3f8e81e81920bd2f1863c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Thu, 16 May 2024 22:43:10 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaomusic/xiaomusic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xiaomusic/xiaomusic.py b/xiaomusic/xiaomusic.py index 080cc2a..f206015 100644 --- a/xiaomusic/xiaomusic.py +++ b/xiaomusic/xiaomusic.py @@ -417,8 +417,10 @@ class XiaoMusic: StartHTTPServer(self.port, self.music_path, self) task = asyncio.create_task(self.poll_latest_ask()) assert task is not None # to keep the reference to task, do not remove this + filtered_keywords = [keyword for keyword in KEY_MATCH_ORDER if "#" not in keyword] + joined_keywords = "/".join(filtered_keywords) self.log.info( - f"Running xiaomusic now, 用`{'/'.join(KEY_WORD_DICT.keys())}`开头来控制" + f"Running xiaomusic now, 用`{joined_keywords}`开头来控制" ) while True: