From b3650a6ed7b69e4d500e4162edc25def025b5197 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Wed, 5 Feb 2025 23:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AD=8C=E6=9B=B2=E5=90=8D?= =?UTF-8?q?=E4=B8=AD=E5=8C=85=E6=8B=AC=E2=80=9C/=E2=80=9D=E7=9A=84?= =?UTF-8?q?=E6=AD=8C=E6=97=A0=E6=B3=95=E5=8F=91=E9=80=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qq_plugins/cloudMusic.py | 2 +- src/qq_plugins/weather.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/qq_plugins/cloudMusic.py b/src/qq_plugins/cloudMusic.py index 0ceb351..de8f0c4 100644 --- a/src/qq_plugins/cloudMusic.py +++ b/src/qq_plugins/cloudMusic.py @@ -48,7 +48,7 @@ async def handle_function(msg: MessageEvent): #搜索歌曲 song_id,song_name,singer,song_url = netease_music_search(keyword,session) - song_name = str(song_name).replace(".", "·") + song_name = str(song_name).replace(".", "·").replace("/", "、") if song_id is None: await music.finish("\n没有找到歌曲,或检索到的歌曲均为付费喔qwq\n这绝对不是我的错,绝对不是!") else: diff --git a/src/qq_plugins/weather.py b/src/qq_plugins/weather.py index 60545a6..a7152a6 100644 --- a/src/qq_plugins/weather.py +++ b/src/qq_plugins/weather.py @@ -1,11 +1,7 @@ -import nonebot -from nonebot import Bot from nonebot.rule import to_me from nonebot.plugin import on_command from nonebot.adapters import Message from nonebot.params import CommandArg -from nonebot.adapters.qq import MessageEvent -import datetime weather = on_command("天气", rule=to_me(), aliases={"weather", "查天气"}, priority=10, block=True)