修bug99999+个就是了

pull/541/head
XBC_D2O 2025-03-13 22:00:49 +08:00
parent ba35069dc8
commit 3b8f9df2a8
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ from nonebot.typing import T_State
from ...common.database import Database
from ..moods.moods import MoodManager # 导入情绪管理器
# from ..schedule.schedule_generator import bot_schedule
from ..schedule.schedule_generator import bot_schedule
from ..utils.statistic import LLMStatistics
from .bot import chat_bot
from .config import global_config
@ -70,8 +70,8 @@ async def start_background_tasks():
# 只启动表情包管理任务
asyncio.create_task(emoji_manager.start_periodic_check(interval_MINS=global_config.EMOJI_CHECK_INTERVAL))
# await bot_schedule.initialize()
# bot_schedule.print_schedule()
await bot_schedule.initialize()
bot_schedule.print_schedule()
@driver.on_startup

View File

@ -71,7 +71,7 @@ class WillingManager:
current_willing *= global_config.response_willing_amplifier #放大回复意愿
# print(f"放大系数_willing: {global_config.response_willing_amplifier}, 当前意愿: {current_willing}")
reply_probability = max((current_willing - 0.45) * 2, 0)
reply_probability = current_willing#max((current_willing - 0.45) * 2, 0)
# 检查群组权限(如果是群聊)
if chat_stream.group_info:

View File

@ -93,7 +93,7 @@ class ScheduleGenerator:
schedule_dict = json.loads(schedule_text)
return schedule_dict
except json.JSONDecodeError:
logger.exception("解析日程失败: {}".format(schedule_text))
#logger.exception("解析日程失败: {}".format(schedule_text))
return False
def _parse_time(self, time_str: str) -> str: