melobot.bot 源代码
from typing_extensions import Any
from ..ctx import BotCtx as _BotCtx
from .base import CLI_RUNTIME, LAST_EXIT_SIGNAL, Bot, BotExitSignal, BotLifeSpan
def __getattr__(name: str) -> Any:
if name == "bot":
return get_bot()
else:
raise AttributeError
bot: Bot
"""当前上下文中的 bot 对象"""