feat:添加消息发送间隔

This commit is contained in:
Jerry 2025-10-18 18:39:18 +08:00
parent 5ca9788b2c
commit ea1f0a547f

View File

@ -10,6 +10,7 @@ import Group from '../lib/yunzai/group.js';
import Message from '../lib/yunzai/message.js';
import YunzaiUtils from '../lib/yunzai/utils.js';
import { segment } from 'oicq';
import tools from "../components/tool.js";
const nickname = await ConfigControl.get('profile')?.nickName;
export class crystelfAI extends plugin {
@ -317,6 +318,7 @@ async function sendResponse(e, messages) {
default:
logger.warn(`[crystelf-ai] 不支持的消息类型: ${message.type}`);
}
await tools.sleep(40);
}
} catch (error) {
logger.error(`[crystelf-ai] 发送回复失败: ${error.message}`);