mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-26 13:00:41 +01:00 
			
		
		
		
	* Draupnir 2.0.0 The config getting changes all over the place is because of 2.0 having removed a lot of config options due to the code being removed. * Update Draupnir Documentation to reflect state as of 2.0.0 * Apply Review Feedback Co-authored-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Change Room IDs found in code review to not conform to playbook standard. Co-authored-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Further Integrate Code Review Feedback * Apply remaining suggestions from code review. Co-authored-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Apply Configuration Review Feedback Co-authored-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add Self Registration and Native Login to Draupnir * Rework Draupnir Documentation to Remove Pantalaimon * Set bot.draupnir as default username for the bot in config * Draupnir 2.0.1 * Integrate Review Feedback on Structure of Docs Co-authored-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Further Restructure Docs and tweak variables in response. * Only auto-create draupnir user if a password has been set The Draupnir role supports configuring it with either an access token or with a password. When a password is not assigned (which means the access token mode is used), the user is to be created manually. * Add ensure-matrix-users-created tag Now that the Draupnir user may be auto-created in certain configurations (if a password is assigned), it's useful to have the tag there. --------- Co-authored-by: Suguru Hirahara <luixxiul@users.noreply.github.com> Co-authored-by: Slavi Pantaleev <slavi@devture.com>
		
			
				
	
	
		
			70 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| # The log level of terminal (or container) output,
 | |
| # can be one of DEBUG, INFO, WARN and ERROR, in increasing order of importance and severity.
 | |
| #
 | |
| # This should be at INFO or DEBUG in order to get support for Draupnir problems.
 | |
| logLevel: "INFO"
 | |
| 
 | |
| # Whether or not Draupnir should check moderation permissions in all protected rooms on startup.
 | |
| # Equivalent to running `!draupnir verify`.
 | |
| verifyPermissionsOnStartup: true
 | |
| 
 | |
| # A case-insensitive list of ban reasons to have the bot also automatically redact the user's messages for.
 | |
| #
 | |
| # If the bot sees you ban a user with a reason that is an (exact case-insensitive) match to this list,
 | |
| # it will also remove the user's messages automatically.
 | |
| #
 | |
| # Typically this is useful to avoid having to give two commands to the bot.
 | |
| # Advanced: Use asterisks to have the reason match using "globs"
 | |
| # (f.e. "spam*testing" would match "spam for testing" as well as "spamtesting").
 | |
| #
 | |
| # See here for more info: https://www.digitalocean.com/community/tools/glob
 | |
| # Note: Keep in mind that glob is NOT regex!
 | |
| automaticallyRedactForReasons:
 | |
|   - "spam"
 | |
|   - "advertising"
 | |
| 
 | |
| # Whether or not to add all joined rooms to the "protected rooms" list
 | |
| # (excluding the management room and watched policy list rooms, see below).
 | |
| #
 | |
| # Note that this effectively makes the protectedRooms and associated commands useless
 | |
| # for regular rooms.
 | |
| #
 | |
| # Note: the management room is *excluded* from this condition.
 | |
| # Explicitly add it as a protected room to protect it.
 | |
| #
 | |
| # Note: Ban list rooms the bot is watching but didn't create will not be protected.
 | |
| # Explicitly add these rooms as a protected room list if you want them protected.
 | |
| protectAllJoinedRooms: false
 | |
| 
 | |
| # Increase this delay to have Draupnir wait longer between two consecutive backgrounded
 | |
| # operations. The total duration of operations will be longer, but the homeserver won't
 | |
| # be affected as much. Conversely, decrease this delay to have Draupnir chain operations
 | |
| # faster. The total duration of operations will generally be shorter, but the performance
 | |
| # of the homeserver may be more impacted.
 | |
| backgroundDelayMS: 500
 | |
| 
 | |
| # Misc options for command handling and commands
 | |
| commands:
 | |
|   # Whether or not the `!draupnir` prefix is necessary to submit commands.
 | |
|   #
 | |
|   # If `true`, will allow commands like `!ban`, `!help`, etc.
 | |
|   #
 | |
|   # Note: Draupnir can also be pinged by display name instead of having to use
 | |
|   # the !draupnir prefix. For example, "my_moderator_bot: ban @spammer:example.org"
 | |
|   # will address only my_moderator_bot.
 | |
|   allowNoPrefix: false
 | |
| 
 | |
|   # Any additional bot prefixes that Draupnir will listen to. i.e. adding `mod` will allow `!mod help`.
 | |
|   additionalPrefixes:
 | |
|     - "draupnir-bot"
 | |
|     - "draupnir_bot"
 | |
|     - "draupnir"
 | |
| 
 | |
|   # The default reasons to be prompted with if the reason is missing from a ban command.
 | |
|   ban:
 | |
|     defaultReasons:
 | |
|       - "spam"
 | |
|       - "brigading"
 | |
|       - "harassment"
 | |
|       - "disagreement"
 |