Closed LambdaYH closed 1 year ago
def need_init(): file = Path(__file__) / "resource" / "ops_initialized" return not file.exists() or file.open('r', encoding='utf-8').read() != __version__
file应该是file = Path(__file__).parent / "resource" / "ops_initialized"
file = Path(__file__).parent / "resource" / "ops_initialized"
不然即使下载资源了也会因为need_init()检测没过而出来个critical导致nonebot2shutdown(另外是不是不该用critical
file应该是
file = Path(__file__).parent / "resource" / "ops_initialized"
不然即使下载资源了也会因为need_init()检测没过而出来个critical导致nonebot2shutdown(另外是不是不该用critical