feat: 基本插件加载功能

This commit is contained in:
Rock Chin
2023-01-13 16:49:56 +08:00
parent 9962a6ebcc
commit 78c1ad16ce
7 changed files with 208 additions and 1 deletions
+5
View File
@@ -16,6 +16,9 @@ import pkg.qqbot.filter
import pkg.qqbot.process as processor
import pkg.utils.context
import pkg.plugin.host as plugin_host
import pkg.plugin.models as plugin_models
# 并行运行
def go(func, args=()):
@@ -155,6 +158,8 @@ class QQBotManager:
# 私聊消息处理
def on_person_message(self, event: MessageEvent):
plugin_host.emit(plugin_models.PersonMessage)
reply = ''
if event.sender.id == self.bot.qq: