How alphadostar/irisex works
IrisEx is an Elixir framework for event-driven chat bots. An application configures bot modules and server URLs; the runtime starts its supervisors, registers the bots, and connects a WebSocket client. Incoming events are decoded into chat context and dispatched asynchronously to registered bots, whose DSL supports event handlers, text/regex matching, conversation state, fallback behavior, and replies. The client sends text or image replies and can query the HTTP API; room-type enrichment is an optional query-backed extension. Edges reflect excerpts and README statements; unsampled example modules are not mapped in detail.
Main entry points: client.ex WebSocket client · application.ex App configuration · registry.ex Bot registry · dsl.ex Bot DSL
Components 15
Runtime
- App configuration
lib/iris_ex/application.ex - Runtime supervisor
lib/iris_ex/application.ex - Task supervisor
lib/iris_ex/application.ex
Bot behavior
- Bot registry
lib/iris_ex/bot/registry.ex - Bot API
lib/iris_ex/bot.ex - Bot DSL
lib/iris_ex/bot/dsl.ex
Messaging transport
- Event dispatch
lib/iris_ex/client.ex - Chat context
lib/iris_ex/client.ex - WebSocket client
lib/iris_ex/client.ex - HTTP actions
lib/iris_ex/client.ex
State and configuration
- Conversation state
lib/iris_ex/bot/agent.ex - Runtime configuration
lib/iris_ex/config.ex
Other components
- Bot modules
- Chat server
- HTTP API
Connections 22
- App configuration → Runtime supervisor: starts runtime
lib/iris_ex/application.ex - App configuration → Runtime configuration: sets URLs
lib/iris_ex/application.ex - App configuration → WebSocket client: starts client
lib/iris_ex/application.ex - App configuration → Bot registry: registers bots
lib/iris_ex/application.ex - Runtime supervisor → Task supervisor: starts child
lib/iris_ex/application.ex - Runtime supervisor → Bot registry: starts child
lib/iris_ex/application.ex - Runtime supervisor → Conversation state: starts child
lib/iris_ex/application.ex - Bot API → Bot registry: registers module
lib/iris_ex/bot.ex - Bot API → Bot DSL: imports macros
lib/iris_ex/bot.ex - WebSocket client → Chat server: receives events
README.md - WebSocket client → Runtime configuration: reads URLs
lib/iris_ex/client.ex - WebSocket client → Chat context: builds context
lib/iris_ex/client.ex - WebSocket client → Event dispatch: handles frames
lib/iris_ex/client.ex - Event dispatch → Bot registry: gets bots
lib/iris_ex/client.ex - Event dispatch → Task supervisor: starts tasks
lib/iris_ex/client.ex - Event dispatch → Bot modules: dispatches events
lib/iris_ex/client.ex - Bot DSL → Conversation state: reads and updates
lib/iris_ex/bot/dsl.ex - Bot DSL → HTTP actions: sends replies
lib/iris_ex/bot/dsl.ex - HTTP actions → Chat server: posts replies
lib/iris_ex/client.ex - HTTP actions → HTTP API: posts queries
lib/iris_ex/client.ex - HTTP actions → Runtime configuration: reads URL
lib/iris_ex/client.ex - WebSocket client → HTTP actions: queries for extension
lib/iris_ex/client.ex