2021-11-19 13:23:10 +00:00
|
|
|
# Bot account details
|
|
|
|
user:
|
|
|
|
credentials:
|
|
|
|
id: "@bot:example.com"
|
|
|
|
homeserver: https://example.com
|
|
|
|
access_token: foo
|
2021-11-19 21:58:17 +00:00
|
|
|
# If you want to enable encryption, set the device ID corresponding to the access token here.
|
|
|
|
device_id: null
|
2021-11-19 13:23:10 +00:00
|
|
|
# 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.
|
2021-11-19 21:58:17 +00:00
|
|
|
# Set to "disable" to not change the the current displayname/avatar.
|
2021-11-19 13:23:10 +00:00
|
|
|
displayname: Standalone Bot
|
|
|
|
avatar_url: mxc://maunium.net/AKwRzQkTbggfVZGEqexbYLIO
|
|
|
|
|
2021-11-19 21:58:17 +00:00
|
|
|
# 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
|
|
|
|
|
2021-11-19 22:45:37 +00:00
|
|
|
# Web server settings. These will only take effect if the plugin requests it using `webapp: true` in the meta file.
|
|
|
|
server:
|
|
|
|
# The IP and port to listen to.
|
|
|
|
hostname: 0.0.0.0
|
|
|
|
port: 8080
|
|
|
|
# The base path where the plugin's web resources will be served. Unlike the normal mode,
|
|
|
|
# the webserver is dedicated for a single bot in standalone mode, so the default path
|
|
|
|
# is just /. If you want to emulate normal mode, set this to /_matrix/maubot/plugin/something
|
|
|
|
base_path: /
|
|
|
|
# The public URL where the resources are available. The base path is automatically appended to this.
|
|
|
|
public_url: https://example.com
|
|
|
|
|
2021-11-19 21:58:17 +00:00
|
|
|
# The database for the plugin. Used for plugin data, the sync token and e2ee data (if enabled).
|
|
|
|
# SQLite and Postgres are supported.
|
2021-11-19 13:23:10 +00:00
|
|
|
database: sqlite:///bot.db
|
|
|
|
|
2022-03-25 19:12:40 +00:00
|
|
|
# Additional arguments for asyncpg.create_pool() or sqlite3.connect()
|
|
|
|
# https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
|
|
|
|
# https://docs.python.org/3/library/sqlite3.html#sqlite3.connect
|
|
|
|
# For sqlite, min_size is used as the connection thread pool size and max_size is ignored.
|
|
|
|
database_opts:
|
|
|
|
min_size: 1
|
|
|
|
max_size: 10
|
|
|
|
|
2021-11-19 13:23:10 +00:00
|
|
|
# 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]
|