mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
fix(plugin.py): 兼容性问题
This commit is contained in:
parent
b970a42d07
commit
eb41cf5481
|
@ -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):
|
||||
"""通知管理员"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user