Skip to content

[Feature] 基于一天中的不同时段,支持更具细粒度的随机时间间隔 #27

@911218sky

Description

@911218sky

描述

Currently, min_interval_minutes and max_interval_minutes in schedule_settings are single fixed values that apply uniformly throughout the day. There is no way to configure different trigger intervals for different times of day.

I'd like to propose adding a time-based interval configuration that allows users to define distinct min/max intervals for specific hour ranges.

For example:

  • Daytime 8:00–18:00: min 15 min, max 60 min (more active, more frequent messages)
  • Evening 18:00–23:00: min 30 min, max 120 min
  • All other hours: fall back to the existing global min/max interval

使用场景

Users want the bot to send proactive messages more frequently during hours when the recipient is likely active (e.g. daytime), and less frequently during late night or early morning.

Currently, quiet_hours only provides an all-or-nothing approach — either messages are sent or completely blocked. There is no way to achieve "different frequency at different times of day."

This feature would make the bot's proactive messaging rhythm feel more natural and human-like, adapting to the user's daily routine rather than using a flat interval around the clock.

你愿意提交PR吗?

  • 是的, 我愿意提交PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/P2中优先级:普通功能缺陷或改进,按计划排期type/feat✨ 新功能 / New Feature

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions