nyx-bot/sample.config.toml

71 lines
2.4 KiB
TOML

# 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"
# Enable E2EE room support ?
encryption = false
# Options for connecting to the bot's Matrix account
[matrix]
# The Matrix User ID of the bot account
user_id = "@bot:example.com"
# Matrix account password (optional if access token used)
user_password = ""
# Matrix account access token (optional if password used)
# Use the provided get_access_token.py script to get one
#user_token = ""
# The URL of the homeserver to connect to
homeserver_url = "https://example.com"
# 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
device_name = "my-project-name"
[storage]
# 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"
# For MySQL, this would look like:
# database: "mysql://username:password@localhost/dbname"
database = "sqlite://bot.db"
# The path to a directory for internal bot storage
# containing encryption keys, sync tokens, etc.
store_path = "./store"
# Logging setup
[logging]
# Logging level
# Allowed levels are 'INFO', 'WARNING', 'ERROR', 'DEBUG' where DEBUG is most verbose
level = "INFO"
# Configure logging to a file
[logging.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
[logging.console_logging]
# Whether logging to the console is enabled
enabled = true
# Room features switch.
# These are the default that can be overriden by subkeys.
[room_features]
jerryxiao = false # Controls Jerry Xiao like feature.
randomdraw = false
record_messages = false # Controls recording message content.
join_confirm = false # Enable join confirming.
# # Toogle this room's room features.
# # You don't need to specify all of them.
# [room_features."!XXXXXXXXXXXXXXXXXX:example.com"]
# jerryxiao = false
# randomdraw = false
# record_messages = false