docs: add example config files

This commit is contained in:
Бородин Роман 2026-09-25 15:23:24 +03:00
parent 63853de81f
commit 01bf23543a
3 changed files with 52 additions and 0 deletions

10
.env.example Normal file
View File

@ -0,0 +1,10 @@
# Matrix Bot Credentials
# Required: at least one of MATRIX_ACCESS_TOKEN or MATRIX_PASSWORD
MATRIX_HOMESERVER=https://matrix.org
MATRIX_USER_ID=@opencode-bot:matrix.org
MATRIX_ACCESS_TOKEN=
MATRIX_PASSWORD=
# Optional: Override storage directory
# MATRIX_STORAGE_PATH=~/.local/share/opencode-matrix-bot

17
matrix.json.example Normal file
View File

@ -0,0 +1,17 @@
{
"homeserver": "https://matrix.org",
"userId": "@opencode-bot:matrix.org",
"password": "",
"deviceId": "opencode-matrix-plugin",
"autoJoin": true,
"triggerPatterns": ["!oc "],
"ignoreRooms": [],
"ignoreUsers": [],
"allowedUsers": [],
"formatHtml": false,
"threadIsolation": true,
"respondToThreadReplies": true,
"rateLimitSeconds": 5,
"botName": "opencode",
"enabled": true
}

25
opencode.example.jsonc Normal file
View File

@ -0,0 +1,25 @@
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
{
"package": "./plugins/opencode-matrix-plugin",
"options": {
"homeserver": "https://matrix.org",
"userId": "@opencode-bot:matrix.org",
"password": "",
"deviceId": "opencode-matrix-plugin",
"autoJoin": true,
"triggerPatterns": ["!oc ", "!ai "],
"ignoreRooms": [],
"ignoreUsers": [],
"allowedUsers": [],
"formatHtml": false,
"threadIsolation": true,
"respondToThreadReplies": true,
"rateLimitSeconds": 5,
"botName": "opencode",
"storagePath": ""
}
}
]
}