Repository navigation
Releases
2.1.1
2.1.0
2.0.0
1.0.2
已修复:已修复以下错误,原因是两个 time 库名称冲突。
Fixed: The following error has been fixed due to a conflict between two time libraries.
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
1.0.0
使用Python重写,代码模块化,便于日后添加新功能。
主要用到以下技术:
- 异步
- 并发
- 定时任务
- 消息队列
Rewrite the code using Python with modular design, making it easier to add new features in the future. The code should mainly use the following technologies:
- Asynchronous programming
- Concurrency
- Scheduled tasks
- Message queue