From 2f8999b5adc01b5f197795f627aae2068864bb92 Mon Sep 17 00:00:00 2001 From: snowy Date: Sat, 10 Aug 2024 22:27:42 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix=20=E9=80=9A=E9=81=93=E7=B1=BB?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E5=9C=A8=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E9=97=B4=E4=BC=A0=E9=80=92=E6=97=B6=E6=97=A0=E6=B3=95=E5=BA=8F?= =?UTF-8?q?=E5=88=97=E5=8F=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/lifespan_monitor.py | 8 ++++---- src/nonebot_plugins/liteyuki_crt_utils/__init__.py | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/liteyuki/plugins/lifespan_monitor.py b/liteyuki/plugins/lifespan_monitor.py index 56127862..8c2d3784 100644 --- a/liteyuki/plugins/lifespan_monitor.py +++ b/liteyuki/plugins/lifespan_monitor.py @@ -51,7 +51,7 @@ async def _(): nbp_chan.send("send by main") -@mbp_chan.on_receive() -@nbp_chan.on_receive() -async def _(data): - print("主进程收到数据", data) +# @mbp_chan.on_receive() +# @nbp_chan.on_receive() +# async def _(data): +# print("主进程收到数据", data) diff --git a/src/nonebot_plugins/liteyuki_crt_utils/__init__.py b/src/nonebot_plugins/liteyuki_crt_utils/__init__.py index 3ffdae2b..386f3c63 100644 --- a/src/nonebot_plugins/liteyuki_crt_utils/__init__.py +++ b/src/nonebot_plugins/liteyuki_crt_utils/__init__.py @@ -18,10 +18,10 @@ __plugin_meta__ = PluginMetadata( } ) -chan = get_channel("nonebot-passive") - - -@chan.on_receive() -async def _(d): - print("CRT子进程接收到数据:", d) - chan.send("CRT子进程已接收到数据") +# chan = get_channel("nonebot-passive") +# +# +# @chan.on_receive() +# async def _(d): +# print("CRT子进程接收到数据:", d) +# chan.send("CRT子进程已接收到数据")