This release is a pre-release and may not be stable for production use.
HiveMind HackChat Bridge
Relay a hack.chat channel to a HiveMind hub.
hack.chat is a minimal, anonymous, channel-based websocket chat. This bridge is a HiveMind satellite whose input and output are a hack.chat channel instead of a microphone. Channel messages become utterances sent to the hub. The hub's spoken reply goes back into the channel, addressed to the user. Any HiveMind hub, and the OVOS skills behind it, becomes a hack.chat bot.
hack.chat channel ⇄ HiveMind-HackChatBridge ⇄ HiveMind hub ⇄ OVOS skills
Prerequisites
- A running HiveMind hub (hivemind-core) reachable over the network, and a HiveMind access key for this bridge (
hivemind-core add-client). - A hack.chat channel name to join, and a nickname for the bot. hack.chat is anonymous, so no account or token is needed.
Install
pip install HiveMind-HackChatBridge
Or from a checkout:
git clone https://github.com/JarbasHiveMind/HiveMind-HackChatBridge
cd HiveMind-HackChatBridge
pip install .
Declared dependencies: hivemind-bus-client, ovos-bus-client, ovos-utils, websocket-client, click.
Quickstart
- Register the bridge on the hub, where
hivemind-coreis installed:
hivemind-core add-client --name hackchat-bridge \
--access-key "your-access-key" --password "your-password"
- Run the bridge. Pass the configuration on the command line, using the
hivemind-hackchat-bridgeconsole script (orpython -m hackchat_bridge):
hivemind-hackchat-bridge \
--channel your_channel \
--username Jarbas_BOT \
--access-key "your-access-key" \
--password "your-password" \
--host ws://127.0.0.1 \
--port 5678
- Send a message. Open the same channel at
https://hack.chat/?your_channeland type:
what time is it?
The bridge forwards the message to the hub and posts the reply back as @user , <answer>.
Configuration
hivemind-hackchat-bridge options:
| Option | Description | Default |
|---|---|---|
--channel |
hack.chat channel name to join | required |
--username |
Bot nickname shown in the channel | Jarbas_BOT |
--host |
HiveMind hub host (wss:// / ws://) |
ws://127.0.0.1 |
--port |
HiveMind hub port | 5678 |
--access-key |
HiveMind access key | None |
--password |
HiveMind password | None |
--self-signed |
Accept self-signed SSL certificates | off |
--lang |
Language code for utterances | en-us |
The bridge forwards every channel message except its own, and strips a leading @username mention of the bot before sending it.
Troubleshooting
- Bot joins but never answers. Confirm the hub is reachable and the access key and password are registered (
hivemind-core list-clients), and that the hub produces aspeakfor the answer. - Wrong channel. The bot and the user must join the same hack.chat channel name. Open
https://hack.chat/?<channel>.
Documentation
- Setup walkthrough: install a hub, register the bridge, and run it end to end.
- Operator setup: the anonymous hack.chat model, security notes, and live end-to-end testing.
- Configuration reference: every command-line option and how message handling works.
- Examples: running the bridge, embedding it in code, and a sample conversation.
Related projects
- HiveMind-core: the HiveMind hub this bridge connects to.
License
Apache License 2.0. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hivemind_hackchatbridge-0.1.0a3.tar.gz.
File metadata
- Download URL: hivemind_hackchatbridge-0.1.0a3.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1657703fec196b3fd11b391b6edfe0799550c14e2d535e5f869f2ebf1cdec006
|
|
| MD5 |
f329a5d911f6c5069898bf2c24e7c1e2
|
|
| BLAKE2b-256 |
e28c481250c5e90f75a9c23c364db2621411bf12309e94c582d2f9db10958a84
|
File details
Details for the file hivemind_hackchatbridge-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: hivemind_hackchatbridge-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee83e73d8b8823073940a984e61163cfa26a52b34907e7544823e3fa29cd0c3
|
|
| MD5 |
4d1a031329974e2ee69de4f6bda8ac78
|
|
| BLAKE2b-256 |
7bc3ce885e3e9cd92e88f29ed892e3e9c4547c4f07a18beb0049bd0d4b0d4bd2
|