mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-26 14:26:06 +00:00
perf: 修改platform_mgr名称
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ from ..utils import version as version_mgr, proxy as proxy_mgr
|
|||||||
class Application:
|
class Application:
|
||||||
"""运行时应用对象和上下文"""
|
"""运行时应用对象和上下文"""
|
||||||
|
|
||||||
im_mgr: im_mgr.PlatformManager = None
|
platform_mgr: im_mgr.PlatformManager = None
|
||||||
|
|
||||||
cmd_mgr: cmdmgr.CommandManager = None
|
cmd_mgr: cmdmgr.CommandManager = None
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ class Application:
|
|||||||
try:
|
try:
|
||||||
|
|
||||||
tasks = [
|
tasks = [
|
||||||
asyncio.create_task(self.im_mgr.run()),
|
asyncio.create_task(self.platform_mgr.run()),
|
||||||
asyncio.create_task(self.ctrl.run())
|
asyncio.create_task(self.ctrl.run())
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class BuildAppStage(stage.BootingStage):
|
|||||||
|
|
||||||
im_mgr_inst = im_mgr.PlatformManager(ap=ap)
|
im_mgr_inst = im_mgr.PlatformManager(ap=ap)
|
||||||
await im_mgr_inst.initialize()
|
await im_mgr_inst.initialize()
|
||||||
ap.im_mgr = im_mgr_inst
|
ap.platform_mgr = im_mgr_inst
|
||||||
|
|
||||||
stage_mgr = stagemgr.StageManager(ap)
|
stage_mgr = stagemgr.StageManager(ap)
|
||||||
await stage_mgr.initialize()
|
await stage_mgr.initialize()
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class Controller:
|
|||||||
"""检查输出
|
"""检查输出
|
||||||
"""
|
"""
|
||||||
if result.user_notice:
|
if result.user_notice:
|
||||||
await self.ap.im_mgr.send(
|
await self.ap.platform_mgr.send(
|
||||||
query.message_event,
|
query.message_event,
|
||||||
result.user_notice,
|
result.user_notice,
|
||||||
query.adapter
|
query.adapter
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class SendResponseBackStage(stage.PipelineStage):
|
|||||||
|
|
||||||
await asyncio.sleep(random_delay)
|
await asyncio.sleep(random_delay)
|
||||||
|
|
||||||
await self.ap.im_mgr.send(
|
await self.ap.platform_mgr.send(
|
||||||
query.message_event,
|
query.message_event,
|
||||||
query.resp_message_chain,
|
query.resp_message_chain,
|
||||||
adapter=query.adapter
|
adapter=query.adapter
|
||||||
|
|||||||
Reference in New Issue
Block a user