Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

76 righe
2.9 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2024 MDAD project contributors
  3. SPDX-License-Identifier: AGPL-3.0-or-later
  4. #}
  5. # The log level of terminal (or container) output,
  6. # can be one of DEBUG, INFO, WARN and ERROR, in increasing order of importance and severity.
  7. #
  8. # This should be at INFO or DEBUG in order to get support for Draupnir problems.
  9. logLevel: "INFO"
  10. # Whether or not Draupnir should check moderation permissions in all protected rooms on startup.
  11. # Equivalent to running `!draupnir verify`.
  12. verifyPermissionsOnStartup: true
  13. # A case-insensitive list of ban reasons to have the bot also automatically redact the user's messages for.
  14. #
  15. # If the bot sees you ban a user with a reason that is an (exact case-insensitive) match to this list,
  16. # it will also remove the user's messages automatically.
  17. #
  18. # Typically this is useful to avoid having to give two commands to the bot.
  19. # Advanced: Use asterisks to have the reason match using "globs"
  20. # (f.e. "spam*testing" would match "spam for testing" as well as "spamtesting").
  21. #
  22. # See here for more info: https://www.digitalocean.com/community/tools/glob
  23. # Note: Keep in mind that glob is NOT regex!
  24. automaticallyRedactForReasons:
  25. - "spam"
  26. - "advertising"
  27. # Whether or not to add all joined rooms to the "protected rooms" list
  28. # (excluding the management room and watched policy list rooms, see below).
  29. #
  30. # Note that this effectively makes the protectedRooms and associated commands useless
  31. # for regular rooms.
  32. #
  33. # Note: the management room is *excluded* from this condition.
  34. # Explicitly add it as a protected room to protect it.
  35. #
  36. # Note: Ban list rooms the bot is watching but didn't create will not be protected.
  37. # Explicitly add these rooms as a protected room list if you want them protected.
  38. protectAllJoinedRooms: false
  39. # Increase this delay to have Draupnir wait longer between two consecutive backgrounded
  40. # operations. The total duration of operations will be longer, but the homeserver won't
  41. # be affected as much. Conversely, decrease this delay to have Draupnir chain operations
  42. # faster. The total duration of operations will generally be shorter, but the performance
  43. # of the homeserver may be more impacted.
  44. backgroundDelayMS: 500
  45. # Misc options for command handling and commands
  46. commands:
  47. # Whether or not the `!draupnir` prefix is necessary to submit commands.
  48. #
  49. # If `true`, will allow commands like `!ban`, `!help`, etc.
  50. #
  51. # Note: Draupnir can also be pinged by display name instead of having to use
  52. # the !draupnir prefix. For example, "my_moderator_bot: ban @spammer:example.org"
  53. # will address only my_moderator_bot.
  54. allowNoPrefix: false
  55. # Any additional bot prefixes that Draupnir will listen to. i.e. adding `mod` will allow `!mod help`.
  56. additionalPrefixes:
  57. - "draupnir-bot"
  58. - "draupnir_bot"
  59. - "draupnir"
  60. # The default reasons to be prompted with if the reason is missing from a ban command.
  61. ban:
  62. defaultReasons:
  63. - "spam"
  64. - "brigading"
  65. - "harassment"
  66. - "disagreement"