diff options
Diffstat (limited to 'MatrixAntiDmSpam/appsettings.Development.json')
| -rw-r--r-- | MatrixAntiDmSpam/appsettings.Development.json | 53 |
1 files changed, 32 insertions, 21 deletions
| diff --git a/MatrixAntiDmSpam/appsettings.Development.json b/MatrixAntiDmSpam/appsettings.Development.json
index 00d6dd4..8c69222 100644 --- a/MatrixAntiDmSpam/appsettings.Development.json +++ b/MatrixAntiDmSpam/appsettings.Development.json | |||
| @@ -1,53 +1,64 @@ | |||
| 1 | { | 1 | { |
| 2 | // Don't touch this unless you know what you're doing: | 2 | // Don't touch this unless you know what you're doing: |
| 3 | "Logging": { | 3 | "Logging": { |
| 4 | "LogLevel": { | 4 | "LogLevel": { |
| 5 | "Default": "Information", | 5 | "Default": "Information", |
| 6 | "Microsoft.Hosting.Lifetime": "Information" | 6 | "Microsoft.Hosting.Lifetime": "Information" |
| 7 | } | 7 | } |
| 8 | }, | 8 | }, |
| 9 | "LibMatrixBot": { | 9 | "LibMatrixBot": { |
| 10 | // Homeserver to connect to. | 10 | // Homeserver to connect to, or rather, where your account is hosted. |
| 11 | // Note: Homeserver resolution is applied here, but a direct base URL can be used. | 11 | // Note: Homeserver resolution is applied here, but a direct base URL can be used. |
| 12 | "Homeserver": "rory.gay", | 12 | "Homeserver": "rory.gay", |
| 13 | 13 | ||
| 14 | // Absolute path to the file containing the access token | 14 | // Absolute path to the file containing the access token |
| 15 | // Hint: log into https://riot.im/app/, go to Settings > Help & About > Advanced > Access Token, | ||
| 16 | // write this into a file, and then clear site data for riot.im so you don't accidentally log it out. | ||
| 17 | // Also, it's recommended to rename the session in your devices list | ||
| 15 | "AccessTokenPath": "/home/Rory/matrix_access_token", | 18 | "AccessTokenPath": "/home/Rory/matrix_access_token", |
| 16 | "InviteHandler": { | ||
| 17 | "SyncConfiguration": { | ||
| 18 | // How long to wait until the sync request times out | ||
| 19 | // "Timeout": 300000, | ||
| 20 | |||
| 21 | // Minimum sync interval, useful if you want to have less traffic than a normal client. | ||
| 22 | "MinimumSyncTime": "00:00:10.000", | ||
| 23 | 19 | ||
| 24 | // What presence value to set | 20 | "InviteListener": { |
| 25 | // Defaults to "online" if null or not set | 21 | "SyncConfiguration": { |
| 26 | "Presence": "offline", | 22 | // Whether to initial sync on startup |
| 27 | 23 | // Leaving this enabled is the same as doing a "Clear Cache & Reload" every time you restart the bot. | |
| 28 | // Filter to apply to the sync request. Useful if you want custom data to be sent. | 24 | // This causes a slower startup, but increases reliability by a fairly large margin. |
| 29 | // "Filter": { }, | ||
| 30 | |||
| 31 | // Whether to initial sync on startup - very useful in development, or just to be sure. | ||
| 32 | "InitialSyncOnStartup": true | 25 | "InitialSyncOnStartup": true |
| 33 | } | 26 | } |
| 34 | } | 27 | } |
| 35 | }, | 28 | }, |
| 36 | "AntiDmSpam": { | 29 | "AntiDmSpam": { |
| 37 | // Whether invites should be logged to a room. | 30 | // Whether to log received/blocked invites into a room. |
| 38 | "LogRoom": "!GrLSwdAkdrvfMrRYKR:rory.gay", | 31 | // This MUST be `null`, or a valid room ID (`!abcdefgh:yourserver.org`), not an alias (`#alias:yourserver.org`). |
| 39 | "LogInviteDataAsFile": true, | 32 | // WARNING: These messages, nor the optional files, are encrypted, even if the room has encryption enabled! |
| 40 | // Whether to report users and rooms when an invite is blocked. | 33 | "LogRoom": null, |
| 34 | "LogInviteDataAsFile": true, // Also send the raw data as a file for manual reporting | ||
| 35 | |||
| 36 | // Whether to report users and rooms when an invitation is blocked. | ||
| 37 | // Some homeserver admins may not like this, and consider it spam, hence the option to opt out :) | ||
| 41 | "ReportBlockedInvites": true, | 38 | "ReportBlockedInvites": true, |
| 39 | |||
| 40 | // Automatically add banned users to your ignore list, also automatically removed automatic ignores when the policy is revoked. | ||
| 41 | // This is useful if you want to hide invites and messages from them. | ||
| 42 | // WARNING: If you're a room moderator, this will cause your client to not receive events from ignored users! | 42 | // WARNING: If you're a room moderator, this will cause your client to not receive events from ignored users! |
| 43 | "IgnoreBannedUsers": true, | 43 | "IgnoreBannedUsers": true, |
| 44 | // Policy lists to follow | 44 | |
| 45 | // Minimum sync interval, useful if you want to have less traffic than a normal client. | ||
| 46 | // WARNING: this will also cause the bot to be slower to respond to invites/policies. | ||
| 47 | // This is considered to be a worthy tradeoff for both reduced energy usage, and reduced server load. | ||
| 48 | // ***ABSOLUTE*** minimum recommended value: 00:00:01.000 - but please don't use this unless you have a good reason, | ||
| 49 | // don't contribute to homeservers slowing down for everyone else. | ||
| 50 | "MinimumSyncTime": "00:00:05.000", | ||
| 51 | |||
| 52 | // Policy lists to follow - must contain at least one list! | ||
| 53 | // What is a policy list? See https://matrix-community-help.codestorm.net/automated-tools.html#3 | ||
| 54 | // Hint: you might also see them referred to as banlists | ||
| 45 | "PolicyLists": [ | 55 | "PolicyLists": [ |
| 46 | { | 56 | { |
| 57 | // Community Moderation Effort is a widely used policy list, and recommended as a base set for usage with MADS. | ||
| 47 | "Name": "Community Moderation Effort", | 58 | "Name": "Community Moderation Effort", |
| 48 | "RoomId": "!fTjMjIzNKEsFlUIiru:neko.dev", | 59 | "RoomId": "!fTjMjIzNKEsFlUIiru:neko.dev", |
| 49 | "Vias": [ "rory.gay" ] | 60 | "Vias": [ "rory.gay" ] |
| 50 | } | 61 | } |
| 51 | ] | 62 | ] |
| 52 | } | 63 | } |
| 53 | } \ No newline at end of file | 64 | } \ No newline at end of file |
