2019-09-25 14:26:29 +02:00
|
|
|
# Welcome to the sample config file
|
|
|
|
# Below you will find various config sections and options
|
|
|
|
# Default values are shown
|
|
|
|
|
|
|
|
# The string to prefix messages with to talk to the bot in group chats
|
|
|
|
command_prefix: "!c"
|
|
|
|
|
|
|
|
# Options for connecting to the bot's Matrix account
|
|
|
|
matrix:
|
|
|
|
# The Matrix User ID of the bot account
|
|
|
|
user_id: "@bot:example.com"
|
2020-02-24 23:13:28 +01:00
|
|
|
# Matrix account password
|
|
|
|
user_password: ""
|
2019-09-25 14:26:29 +02:00
|
|
|
# The URL of the homeserver to connect to
|
|
|
|
homeserver_url: https://example.com
|
2020-02-24 23:13:28 +01:00
|
|
|
# The device ID that is **non pre-existing** device
|
|
|
|
# If this device ID already exists, messages will be dropped silently in encrypted rooms
|
|
|
|
device_id: ABCDEFGHIJ
|
|
|
|
# What to name the logged in device
|
2020-08-16 16:51:59 +02:00
|
|
|
device_name: my-project-name
|
2019-09-25 14:26:29 +02:00
|
|
|
|
2020-02-24 23:13:28 +01:00
|
|
|
storage:
|
2020-08-16 16:51:59 +02:00
|
|
|
# The database connection string
|
|
|
|
# For SQLite3, this would look like:
|
|
|
|
# database: "sqlite://bot.db"
|
|
|
|
# For Postgres, this would look like:
|
|
|
|
# database: "postgres://username:password@localhost/dbname?sslmode=disable"
|
|
|
|
database: "sqlite://bot.db"
|
2020-02-24 23:13:28 +01:00
|
|
|
# The path to a directory for internal bot storage
|
|
|
|
# containing encryption keys, sync tokens, etc.
|
2020-08-16 16:51:59 +02:00
|
|
|
store_path: "./store"
|
2019-09-25 14:26:29 +02:00
|
|
|
|
|
|
|
# Logging setup
|
|
|
|
logging:
|
|
|
|
# Logging level
|
|
|
|
# Allowed levels are 'INFO', 'WARNING', 'ERROR', 'DEBUG' where DEBUG is most verbose
|
|
|
|
level: INFO
|
|
|
|
# Configure logging to a file
|
|
|
|
file_logging:
|
|
|
|
# Whether logging to a file is enabled
|
|
|
|
enabled: false
|
|
|
|
# The path to the file to log to. May be relative or absolute
|
|
|
|
filepath: bot.log
|
|
|
|
# Configure logging to the console output
|
|
|
|
console_logging:
|
|
|
|
# Whether logging to the console is enabled
|
|
|
|
enabled: true
|