about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/appsettings.Development.json
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-19 11:38:27 +0100
committerRory& <root@rory.gay>2025-03-19 11:38:27 +0100
commitd766188db6d22227c6bd9c90dfacf2e40f848d9e (patch)
tree3241a38caca7a3e011730bd6874cc04ed612e879 /MatrixAntiDmSpam/appsettings.Development.json
parentAdd more stores, do osme work (diff)
downloadMatrixAntiDmSpam-d766188db6d22227c6bd9c90dfacf2e40f848d9e.tar.xz
Rejecting invites from already banned users works now
Diffstat (limited to 'MatrixAntiDmSpam/appsettings.Development.json')
-rw-r--r--MatrixAntiDmSpam/appsettings.Development.json38
1 files changed, 31 insertions, 7 deletions
diff --git a/MatrixAntiDmSpam/appsettings.Development.json b/MatrixAntiDmSpam/appsettings.Development.json

index 958cc7a..fd582b4 100644 --- a/MatrixAntiDmSpam/appsettings.Development.json +++ b/MatrixAntiDmSpam/appsettings.Development.json
@@ -1,4 +1,5 @@ { + // Don't touch this unless you know what you're doing: "Logging": { "LogLevel": { "Default": "Information", @@ -6,18 +7,41 @@ } }, "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": { }, + + // Whether to initial sync on startup - very useful in development, or just to be sure. + "InitialSyncOnStartup": true + } + } }, "AntiDmSpam": { "LogRoom": "!GrLSwdAkdrvfMrRYKR:rory.gay", "LogInviteDataAsFile": true, "PolicyLists": [ - { - "Name": "Community Moderation Effort", - "RoomId": "!fTjMjIzNKEsFlUIiru:neko.dev", - "Vias": [ "rory.gay" ] - } + { + "Name": "Community Moderation Effort", + "RoomId": "!fTjMjIzNKEsFlUIiru:neko.dev", + "Vias": [ "rory.gay" ] + } ] } -} +} \ No newline at end of file