Discord text integration for echo-system entities.
Gives an entity the ability to read and write messages in Discord text channels. Connects to the Discord gateway via WebSocket, listens for messages in configured channels, forwards them to the entity's chat handler, and posts responses back. Also provides a discord_post tool for entity-initiated messaging.
- Gateway: Discord gateway v10 WebSocket with heartbeat, identify, resume, and reconnect with exponential backoff
- REST client: Post messages to any configured channel, automatic splitting at Discord's 2000-character limit
- Tool:
discord_posttool for proactive messaging from scheduled tasks, intents, or conversations - Filtering: Channel-based and user-based message filtering
- Config: Channel name-to-ID mapping so the entity uses friendly names, not raw IDs
discord-echo is used as a dependency of echo-system. Enable it with the discord-text feature:
cargo build --features discord-textConfigure in echo-system.toml:
[plugins.discord-text-echo]
bot_token = "your-bot-token"
guild_id = "your-guild-id"
listen_channels = ["constellation"]
chat_endpoint = "http://127.0.0.1:3100/chat"
[plugins.discord-text-echo.channels]
constellation = "channel-id"AGPL-3.0 — see LICENSE.