2019-10-03 00:20:37 -04:00
|
|
|
# Where the homeserver is located (client-server URL). This should point at
|
|
|
|
# pantalaimon if you're using that.
|
2019-09-25 22:13:20 -04:00
|
|
|
homeserverUrl: "https://matrix.org"
|
|
|
|
|
2019-10-03 00:20:37 -04:00
|
|
|
# The access token for the bot to use. Do not populate if using Pantalaimon.
|
2019-09-25 22:13:20 -04:00
|
|
|
accessToken: "YOUR_TOKEN_HERE"
|
|
|
|
|
2019-10-03 00:20:37 -04:00
|
|
|
# Pantalaimon options (https://github.com/matrix-org/pantalaimon)
|
|
|
|
pantalaimon:
|
|
|
|
# If true, accessToken above is ignored and the username/password below will be
|
|
|
|
# used instead. The access token of the bot will be stored in the dataPath.
|
|
|
|
use: false
|
|
|
|
|
|
|
|
# The username to login with.
|
|
|
|
username: mjolnir
|
|
|
|
|
|
|
|
# The password to login with. Can be removed after the bot has logged in once and
|
|
|
|
# stored the access token.
|
|
|
|
password: your_password
|
|
|
|
|
2019-09-25 22:13:20 -04:00
|
|
|
# The directory the bot should store various bits of information in
|
|
|
|
dataPath: "/data/storage"
|
|
|
|
|
|
|
|
# Whether the bot should autojoin rooms it is invited to or not
|
|
|
|
autojoin: true
|
2019-09-27 15:57:36 -04:00
|
|
|
|
2020-01-21 15:53:02 -05:00
|
|
|
# If `autojoin` is true, this defines whether anyone can invite the bot (the
|
|
|
|
# default), or only those in the `managementRoom` below. Generally this option
|
|
|
|
# should be set to true (only allow people in the management room to do invites)
|
|
|
|
# when using autojoin.
|
|
|
|
autojoinOnlyIfManager: false
|
|
|
|
|
2019-09-27 15:57:36 -04:00
|
|
|
# The room ID where people can use the bot. The bot has no access controls, so
|
|
|
|
# anyone in this room can use the bot - secure your room!
|
2019-09-27 16:36:23 -04:00
|
|
|
# This should be a room alias or room ID - not a matrix.to URL.
|
2019-10-04 22:59:30 -04:00
|
|
|
# Note: Mjolnir is fairly verbose - expect a lot of messages from it.
|
2019-09-27 15:57:36 -04:00
|
|
|
managementRoom: "#moderators:example.org"
|
|
|
|
|
2019-10-04 22:59:30 -04:00
|
|
|
# Set to false to make the management room a bit quieter.
|
|
|
|
verboseLogging: true
|
|
|
|
|
2019-10-31 11:55:34 -04:00
|
|
|
# The log level for the logs themselves. One of DEBUG, INFO, WARN, and ERROR.
|
|
|
|
# This should be at INFO or DEBUG in order to get support for Mjolnir problems.
|
|
|
|
logLevel: "INFO"
|
|
|
|
|
2019-10-04 23:02:37 -04:00
|
|
|
# Set to false to disable synchronizing the ban lists on startup. If true, this
|
|
|
|
# is the same as running !mjolnir sync immediately after startup.
|
|
|
|
syncOnStartup: true
|
|
|
|
|
2019-10-04 23:22:34 -04:00
|
|
|
# Set to false to prevent Mjolnir from checking its permissions on startup. This
|
|
|
|
# is recommended to be left as "true" to catch room permission problems (state
|
|
|
|
# resets, etc) before Mjolnir is needed.
|
|
|
|
verifyPermissionsOnStartup: true
|
|
|
|
|
2019-10-09 09:51:30 -04:00
|
|
|
# If true, Mjolnir won't actually ban users or apply server ACLs, but will
|
|
|
|
# think it has. This is useful to see what it does in a scenario where the
|
|
|
|
# bot might not be trusted fully, yet. Default false (do bans/ACLs).
|
|
|
|
noop: false
|
|
|
|
|
2019-11-06 20:54:59 -05:00
|
|
|
# Set to true to use /joined_members instead of /state to figure out who is
|
|
|
|
# in the room. Using /state is preferred because it means that users are
|
|
|
|
# banned when they are invited instead of just when they join, though if your
|
|
|
|
# server struggles with /state requests then set this to true.
|
|
|
|
fasterMembershipChecks: false
|
|
|
|
|
2019-12-09 21:56:12 -05:00
|
|
|
# A case-insensitive list of ban reasons to automatically redact a user's
|
|
|
|
# messages for. Typically this is useful to avoid having to type two commands
|
|
|
|
# to the bot. Use asterisks to represent globs (ie: "spam*testing" would match
|
|
|
|
# "spam for testing" as well as "spamtesting").
|
|
|
|
automaticallyRedactForReasons:
|
|
|
|
- "spam"
|
|
|
|
- "advertising"
|
|
|
|
|
2019-09-27 16:36:23 -04:00
|
|
|
# A list of rooms to protect (matrix.to URLs)
|
|
|
|
protectedRooms:
|
|
|
|
- "https://matrix.to/#/#yourroom:example.org"
|
2020-01-21 17:19:03 -05:00
|
|
|
|
|
|
|
# Set this option to true to protect every room the bot is joined to. Note that
|
|
|
|
# this effectively makes the protectedRooms and associated commands useless because
|
|
|
|
# the bot by nature must be joined to the room to protect it.
|
|
|
|
#
|
|
|
|
# Note: the management room is *excluded* from this condition. Add it to the
|
|
|
|
# protected rooms to protect it.
|
|
|
|
protectAllJoinedRooms: false
|
2020-01-25 22:34:15 -05:00
|
|
|
|
2020-02-12 17:27:27 -05:00
|
|
|
# Misc options for command handling and commands
|
|
|
|
commands:
|
|
|
|
# If true, Mjolnir will respond to commands like !help and !ban instead of
|
|
|
|
# requiring a prefix. This is useful if Mjolnir is the only bot running in
|
|
|
|
# your management room.
|
|
|
|
#
|
|
|
|
# Note that Mjolnir can be pinged by display name instead of having to use
|
|
|
|
# the !mjolnir prefix. For example, "my_moderator_bot: ban @spammer:example.org"
|
|
|
|
# will ban a user.
|
|
|
|
allowNoPrefix: false
|
|
|
|
|
|
|
|
# In addition to the bot's display name, !mjolnir, and optionally no prefix
|
|
|
|
# above, the bot will respond to these names. The items here can be used either
|
|
|
|
# as display names or prefixed with exclamation points.
|
|
|
|
additionalPrefixes:
|
|
|
|
- "mjolnir_bot"
|