mirror of https://github.com/Mai-with-u/MaiBot.git
🤖 自动格式化代码 [skip ci]
parent
dcf48bff5f
commit
22bce5c9c5
|
|
@ -309,7 +309,7 @@ class SubMind:
|
||||||
# 获取当前正在做的一件事情,不包含时间信息,以保持简洁
|
# 获取当前正在做的一件事情,不包含时间信息,以保持简洁
|
||||||
# 你可以根据需要调整 num 和 time_info 参数
|
# 你可以根据需要调整 num 和 time_info 参数
|
||||||
current_schedule_info = bot_schedule.get_current_num_task(num=1, time_info=False)
|
current_schedule_info = bot_schedule.get_current_num_task(num=1, time_info=False)
|
||||||
if not current_schedule_info: # 如果日程为空,给一个默认提示
|
if not current_schedule_info: # 如果日程为空,给一个默认提示
|
||||||
current_schedule_info = "当前没有什么特别的安排。"
|
current_schedule_info = "当前没有什么特别的安排。"
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"{self.log_prefix} 获取日程信息时出错: {e}")
|
logger.error(f"{self.log_prefix} 获取日程信息时出错: {e}")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue