Skip to content

Tags: RoachLin/idol_bot

Tags

1.0.2

Toggle 1.0.2's commit message
修复如下报错,原因是两个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'

1.0.1

Toggle 1.0.1's commit message
减少凌晨时的开播状态检查

1.0.0

Toggle 1.0.0's commit message
更新 main.py

0.0.1

Toggle 0.0.1's commit message
Update main.py