summary refs log tree commit diff
path: root/MatrixInviteLogger
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-15 18:40:59 +0100
committerRory& <root@rory.gay>2025-03-15 18:40:59 +0100
commitcbff0cc778f8d7a74c683936e22b92f6d5a56497 (patch)
tree31151600394f5d0abfd3ca69af1ab94fa3827a53 /MatrixInviteLogger
parentDont include nulls (diff)
downloadMatrixInviteLogger-cbff0cc778f8d7a74c683936e22b92f6d5a56497.tar.xz
Update LibMatrix for extended invite listener API, document app settings
Diffstat (limited to 'MatrixInviteLogger')
-rw-r--r--MatrixInviteLogger/appsettings.Development.json29
1 files changed, 27 insertions, 2 deletions
diff --git a/MatrixInviteLogger/appsettings.Development.json b/MatrixInviteLogger/appsettings.Development.json

index ffdfb9c..92d8675 100644 --- a/MatrixInviteLogger/appsettings.Development.json +++ b/MatrixInviteLogger/appsettings.Development.json
@@ -1,4 +1,5 @@ { + // Don't touch this unless you know what you're doing: "Logging": { "LogLevel": { "Default": "Information", @@ -6,11 +7,35 @@ } }, "LibMatrixBot": { + // Homeserver to connect to. + // Note: Homeserver resolution is applied here, but a direct base URL can be used. "Homeserver": "rory.gay", - "AccessTokenPath": "/home/Rory/matrix_access_token" + + // Absolute path to the file containing the access token + "AccessTokenPath": "/home/Rory/matrix_access_token", + "InviteHandler": { + "SyncConfiguration": { + // How long to wait until the sync request times out + // "Timeout": 300000, + + // Minimum sync interval, useful if you want to have less traffic than a normal client. + "MinimumSyncTime": "00:00:10.000", + + // What presence value to set + // Defaults to "online" if null or not set + // "Presence": "online", + + // Filter to apply to the sync request. Useful if you want custom data to be sent. + // "Filter": { } + } + } }, "InviteLogger": { + // Room to log invites to. Note that data will be posted without encryption, even if the room is encrypted! "LogRoom": "!GrLSwdAkdrvfMrRYKR:rory.gay", - "SendInviteDataAsFile": true // default: false + + // Send the invite data as a file, separately to linking it in the message event + // Provides easy manual access - defaults to false + "SendInviteDataAsFile": true } }