添加进程及生命周期管理器,添加轻雪框架支持

This commit is contained in:
远野千束 2024-07-24 02:58:16 +08:00
parent 97dbf42a4d
commit f22f4d229d

View File

@ -23,7 +23,7 @@ liteyuki = get_bot()
@liteyuki.on_after_start @liteyuki.on_after_start
def _(): def _():
temp_data = common_db.where_one(TempConfig(), default=TempConfig()) temp_data = common_db.where_one(TempConfig(), default=TempConfig())
# 储存重启信息 # 储存重启计时信息
if temp_data.data.get("reload", False): if temp_data.data.get("reload", False):
delta_time = time.time() - temp_data.data.get("reload_time", 0) delta_time = time.time() - temp_data.data.get("reload_time", 0)
temp_data.data["delta_time"] = delta_time temp_data.data["delta_time"] = delta_time