Heychat Adapter
The Heychat (黑盒语音 / Heybox Chat) adapter connects to the official bot platform via WebSocket and HTTP.
Status
✅ Beta — core features implemented
Features
- WebSocket connection with heartbeat
- Slash command events (type=50)
- Channel text messages (type=5, experimental)
- Send/delete channel messages
- Room info query
Installation
bash
npm install @onebots/adapter-heychat
# or
pnpm add @onebots/adapter-heychatPrerequisites
- Complete developer certification at open.xiaoheihe.cn
- Create a bot at bot.xiaoheihe.cn and copy the token
- Register slash commands in the bot console
- Invite the bot into your test room
Configuration
yaml
heychat.my_bot:
token: 'your_bot_token'
onebot.v11:
access_token: 'your_v11_token'Start
bash
onebots -r heychat -p onebot-v11 -c config.yamlLimitations
- Requires a long-running process (no webhook mode)
- Official docs focus on slash commands; type=5 is experimental
- Bot must be invited into the target room