mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 23:06:03 +00:00
feat: person_message和group_message的事件钩子
This commit is contained in:
@@ -91,3 +91,11 @@ class PluginHost:
|
||||
def get_runtime_context(self) -> context:
|
||||
"""获取运行时上下文"""
|
||||
return context
|
||||
|
||||
def get_bot(self):
|
||||
"""获取机器人对象"""
|
||||
return context.get_qqbot_manager().bot
|
||||
|
||||
def notify_admin(self, message):
|
||||
"""通知管理员"""
|
||||
context.get_qqbot_manager().notify_admin(message)
|
||||
|
||||
Reference in New Issue
Block a user