mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
feat:添加消息发送间隔
This commit is contained in:
parent
5ca9788b2c
commit
ea1f0a547f
@ -10,6 +10,7 @@ import Group from '../lib/yunzai/group.js';
|
|||||||
import Message from '../lib/yunzai/message.js';
|
import Message from '../lib/yunzai/message.js';
|
||||||
import YunzaiUtils from '../lib/yunzai/utils.js';
|
import YunzaiUtils from '../lib/yunzai/utils.js';
|
||||||
import { segment } from 'oicq';
|
import { segment } from 'oicq';
|
||||||
|
import tools from "../components/tool.js";
|
||||||
const nickname = await ConfigControl.get('profile')?.nickName;
|
const nickname = await ConfigControl.get('profile')?.nickName;
|
||||||
|
|
||||||
export class crystelfAI extends plugin {
|
export class crystelfAI extends plugin {
|
||||||
@ -317,6 +318,7 @@ async function sendResponse(e, messages) {
|
|||||||
default:
|
default:
|
||||||
logger.warn(`[crystelf-ai] 不支持的消息类型: ${message.type}`);
|
logger.warn(`[crystelf-ai] 不支持的消息类型: ${message.type}`);
|
||||||
}
|
}
|
||||||
|
await tools.sleep(40);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`[crystelf-ai] 发送回复失败: ${error.message}`);
|
logger.error(`[crystelf-ai] 发送回复失败: ${error.message}`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user