From eb41cf548152279af0489e46a88ca0abd414726f Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Tue, 25 Apr 2023 10:27:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugin.py):=20=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/plugin/host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugin/host.py b/pkg/plugin/host.py index bea28cbf..af37c24c 100644 --- a/pkg/plugin/host.py +++ b/pkg/plugin/host.py @@ -283,11 +283,11 @@ class PluginHost: def send_person_message(self, person, message): """发送私聊消息""" - asyncio.run(self.get_bot_adapter().send_message("person", person, message)) + self.get_bot_adapter().send_message("person", person, message) def send_group_message(self, group, message): """发送群消息""" - asyncio.run(self.get_bot_adapter().send_message("group", group, message)) + self.get_bot_adapter().send_message("group", group, message) def notify_admin(self, message): """通知管理员"""