mirror of
https://github.com/maubot/maubot
synced 2025-08-29 08:50:38 +00:00
51 lines
1.8 KiB
YAML
51 lines
1.8 KiB
YAML
# Bot account details
|
|
user:
|
|
credentials:
|
|
id: "@bot:example.com"
|
|
homeserver: https://example.com
|
|
access_token: foo
|
|
# If you want to enable encryption, set the device ID corresponding to the access token here.
|
|
device_id: null
|
|
# Enable /sync? This is not needed for purely unencrypted webhook-based bots, but is necessary in most other cases.
|
|
sync: true
|
|
# Automatically accept invites?
|
|
autojoin: false
|
|
# The displayname and avatar URL to set for the bot on startup.
|
|
# Set to "disable" to not change the the current displayname/avatar.
|
|
displayname: Standalone Bot
|
|
avatar_url: mxc://maunium.net/AKwRzQkTbggfVZGEqexbYLIO
|
|
|
|
# Should events from the initial sync be ignored? This should usually always be true.
|
|
ignore_initial_sync: true
|
|
# Should events from the first sync after starting be ignored? This can be set to false
|
|
# if you want the bot to handle messages that were sent while the bot was down.
|
|
ignore_first_sync: true
|
|
|
|
# The database for the plugin. Used for plugin data, the sync token and e2ee data (if enabled).
|
|
# SQLite and Postgres are supported.
|
|
database: sqlite:///bot.db
|
|
|
|
# Config for the plugin. Refer to the plugin's base-config.yaml to find what (if anything) to put here.
|
|
plugin_config: {}
|
|
|
|
# Standard Python logging configuration
|
|
logging:
|
|
version: 1
|
|
formatters:
|
|
colored:
|
|
(): maubot.lib.color_log.ColorFormatter
|
|
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
|
|
handlers:
|
|
console:
|
|
class: logging.StreamHandler
|
|
formatter: colored
|
|
loggers:
|
|
maubot:
|
|
level: DEBUG
|
|
mau:
|
|
level: DEBUG
|
|
aiohttp:
|
|
level: INFO
|
|
root:
|
|
level: DEBUG
|
|
handlers: [console]
|