Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

94 lines
4.1 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD project contributors
  3. SPDX-FileCopyrightText: 2024 - 2025 Catalan Lover <catalanlover@protonmail.com>
  4. SPDX-License-Identifier: AGPL-3.0-or-later
  5. #}
  6. # The log level of terminal (or container) output,
  7. # can be one of DEBUG, INFO, WARN and ERROR, in increasing order of importance and severity.
  8. #
  9. # This should be at INFO or DEBUG in order to get support for Draupnir problems.
  10. logLevel: "INFO"
  11. # Whether or not Draupnir should check moderation permissions in all protected rooms on startup.
  12. # Equivalent to running `!draupnir verify`.
  13. verifyPermissionsOnStartup: true
  14. # A case-insensitive list of ban reasons to have the bot also automatically redact the user's messages for.
  15. #
  16. # If the bot sees you ban a user with a reason that is an (exact case-insensitive) match to this list,
  17. # it will also remove the user's messages automatically.
  18. #
  19. # Typically this is useful to avoid having to give two commands to the bot.
  20. # Advanced: Use asterisks to have the reason match using "globs"
  21. # (f.e. "spam*testing" would match "spam for testing" as well as "spamtesting").
  22. #
  23. # See here for more info: https://www.digitalocean.com/community/tools/glob
  24. # Note: Keep in mind that glob is NOT regex!
  25. automaticallyRedactForReasons:
  26. - "spam"
  27. - "advertising"
  28. # Whether or not to add all joined rooms to the "protected rooms" list
  29. # (excluding the management room and watched policy list rooms, see below).
  30. #
  31. # Note that this effectively makes the protectedRooms and associated commands useless
  32. # for regular rooms.
  33. #
  34. # Note: the management room is *excluded* from this condition.
  35. # Explicitly add it as a protected room to protect it.
  36. #
  37. # Note: Ban list rooms the bot is watching but didn't create will not be protected.
  38. # Explicitly add these rooms as a protected room list if you want them protected.
  39. protectAllJoinedRooms: false
  40. # Increase this delay to have Draupnir wait longer between two consecutive backgrounded
  41. # operations. The total duration of operations will be longer, but the homeserver won't
  42. # be affected as much. Conversely, decrease this delay to have Draupnir chain operations
  43. # faster. The total duration of operations will generally be shorter, but the performance
  44. # of the homeserver may be more impacted.
  45. backgroundDelayMS: 500
  46. # Misc options for command handling and commands
  47. commands:
  48. # Whether or not the `!draupnir` prefix is necessary to submit commands.
  49. #
  50. # If `true`, will allow commands like `!ban`, `!help`, etc.
  51. #
  52. # Note: Draupnir can also be pinged by display name instead of having to use
  53. # the !draupnir prefix. For example, "my_moderator_bot: ban @spammer:example.org"
  54. # will address only my_moderator_bot.
  55. allowNoPrefix: false
  56. # Any additional bot prefixes that Draupnir will listen to. i.e. adding `mod` will allow `!mod help`.
  57. additionalPrefixes:
  58. - "draupnir-bot"
  59. - "draupnir_bot"
  60. - "draupnir"
  61. # The default reasons to be prompted with if the reason is missing from a ban command.
  62. ban:
  63. defaultReasons:
  64. - "spam"
  65. - "brigading"
  66. - "harassment"
  67. - "disagreement"
  68. # Safe mode provides recovery options for some failure modes when Draupnir
  69. # fails to start. For example, if the bot fails to resolve a room alias in
  70. # a watched list, or if the server has parted from a protected room and can't
  71. # find a way back in. Safe mode will provide different options to recover from
  72. # these. Such as unprotecting the room or unwatching the policy list.
  73. # By default Draupnir will boot into safe mode only when the failure mode
  74. # is recoverable.
  75. # It may be desirable to prevent the bot from starting into safe mode if you have
  76. # a pager system when Draupnir is down, as Draupnir could prevent your monitoring
  77. # system from identifying a failure to start.
  78. #safeMode:
  79. # # The option for entering safe mode when Draupnir fails to start up.
  80. # # - "RecoveryOnly" will only start the bot in safe mode when there are recovery options available. This is the default.
  81. # # - "Never" will never start the bot in safe mode when Draupnir fails to start normally.
  82. # # - "Always" will always start the bot in safe mode when Draupnir fails to start normally.
  83. # bootOption: RecoveryOnly