Enables OpenClaw to chat with you through multiple messages!
A message-splitting plugin for OpenClaw. It splits long messages into multiple messages using the {enter/} marker, with realistic typing delays between each chunk.
让OpenClaw能够和你通过多条消息聊天!按 {enter/} 标记将一条长消息拆分成多条消息依次发送,并模拟真人打字的延迟。
Developed by yy & yifu233 with 💕
yychat hooks into OpenClaw's message_sending event, which fires before any message is sent through any channel. This means the plugin works universally with all OpenClaw-supported platforms: WeChat, Feishu (Lark), Telegram, Discord, Enterprise WeChat, Matrix, and more. No per-channel configuration needed — install once, works everywhere.
When it detects the {enter/} marker in a message, it splits the content, sends the first part immediately, and queues the rest. After each part is delivered, it waits a realistic typing delay before sending the next chunk via message_sent hook.
技术原理:yychat 通过监听 OpenClaw 的 message_sending 钩子来拦截所有即将发送的消息。这个钩子在消息到达具体聊天软件之前触发,因此插件与底层通信渠道无关——无论你用微信、飞书、Telegram、Discord 还是其他平台,安装后自动生效。检测到 {enter/} 标记后,插件将消息拆分为多段,第一时间发送第一段,其余排队等待;每发送完一段,通过 message_sent 钩子触发下一段,并在中间插入模拟打字的时间延迟。
- Split messages by
{enter/}marker - Realistic typing delays (≤20 chars: 2s, 20-50 chars: 4s, ≥50 chars: 5s)
- Marker is intercepted and never appears in the message
- Universal — works with any OpenClaw channel out of the box
openclaw plugins install clawhub:yychatInsert {enter/} in your reply to split:
First message {enter/} Second message {enter/} Third message
The plugin intercepts the message, sends the first part immediately, then sends each subsequent part with a typing delay.
In openclaw.json, under plugins.entries.yychat.config:
| Key | Type | Default | Description |
|---|---|---|---|
shortDelay |
number | 2000 | Delay for ≤20 chars (ms) |
mediumDelay |
number | 4000 | Delay for 20-50 chars (ms) |
longDelay |
number | 5000 | Delay for ≥50 chars (ms) |
separator |
string | {enter/} |
Message split marker |
git clone https://github.com/yifu233/yychat
cd yychat
npm install
npm run build
openclaw plugins install ./distMIT
Developed with 💕 by yy & yifu233