feat(sleep): 为睡眠系统添加随机时间偏移功能
- 新增每日睡眠和起床时间随机偏移量配置选项 - 实现缓存机制确保同一天内使用相同的偏移量 - 重构睡眠时间检查逻辑以支持动态时间偏移 - 更新相关配置类和插件清单格式
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{
|
||||
|
||||
"manifest_version": 1,
|
||||
"name": "Set Typing Status",
|
||||
"description": "一个在LLM生成回复时设置私聊输入状态的插件。",
|
||||
"version": "1.0.0",
|
||||
|
||||
@@ -29,7 +29,6 @@ class SetTypingStatusHandler(BaseEventHandler):
|
||||
user_id = message.message_info.user_info.user_id
|
||||
if not user_id:
|
||||
return HandlerResult(success=False, continue_process=True, message="无法获取用户ID")
|
||||
|
||||
try:
|
||||
params = {"user_id": user_id, "event_type": 1}
|
||||
await send_api.adapter_command_to_stream(
|
||||
|
||||
Reference in New Issue
Block a user