From cbff0cc778f8d7a74c683936e22b92f6d5a56497 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 15 Mar 2025 18:40:59 +0100 Subject: Update LibMatrix for extended invite listener API, document app settings --- MatrixInviteLogger/appsettings.Development.json | 29 +++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'MatrixInviteLogger') 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 } } -- cgit 1.5.1