Tags: RoachLin/idol_bot
Tags
修复如下报错,原因是两个time库名字冲突了 Job "check_showroom_status (trigger: cron[second='0'], next run at: 2024-08-25 11:56:00 CST)" raised an exception Traceback (most recent call last): File "/home/lin/Downloads/venv/lib/python3.12/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job retval = await job.func(*job.args, **job.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lin/Downloads/idol_bot/main.py", line 146, in check_showroom_status if time.time() - showroom_end_time_list[i] > 5 * 60: ^^^^^^^^^ AttributeError: type object 'datetime.time' has no attribute 'time'