MCPcopy
hub / github.com/nonebot/nonebot2 / run

Method run

nonebot/internal/driver/abstract.py:122–126  ·  view source on GitHub ↗

启动驱动框架

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

120
121 @abc.abstractmethod
122 def run(self, *args, **kwargs):
123 """启动驱动框架"""
124 logger.opt(colors=True).success(
125 f"<g>Loaded adapters: {escape_tag(', '.join(self._adapters))}</g>"
126 )
127
128 def on_startup(self, func: LIFESPAN_FUNC) -> LIFESPAN_FUNC:
129 """注册一个启动时执行的函数"""

Callers

nothing calls this directly

Calls 2

escape_tagFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected