Persistent Python daemon connecting Matrix DM room to AiAgent API. - Config-driven (JSON config file) - Extensible command system (/new_session, /help) - Typing indicators while agent processes - Session auto-naming for identification - Persistent state across restarts - Token refresh, retry logic, error handling - Python stdlib only — no external dependencies
22 lines
586 B
JSON
22 lines
586 B
JSON
{
|
|
"matrix": {
|
|
"server": "matrix.daedalus706.de",
|
|
"user_id": "@lucy:matrix.daedalus706.de",
|
|
"room_id": "!8zLJacfaL2WYoYVp:matrix.daedalus706.de",
|
|
"credentials_file": "/home/admin/auth/matrix-credentials.txt"
|
|
},
|
|
"agent": {
|
|
"base_url": "http://10.0.1.2:8080"
|
|
},
|
|
"bridge": {
|
|
"poll_interval_seconds": 1,
|
|
"state_file": "/home/admin/agent-dir/bridge-state.json",
|
|
"matrix_poll_timeout": 0,
|
|
"agent_timeout_seconds": 30,
|
|
"agent_retries": 3,
|
|
"max_message_length": 40000,
|
|
"processed_ids_limit": 200,
|
|
"agent_response_timeout": 300
|
|
}
|
|
}
|