uberbot/sample_uberbot.toml

108 lines
3.1 KiB
TOML

# Logging severity. Can be one of trace, debug, info, warn or error.
# optional, default: info
log_level = "debug"
# Skip TLS certificate validation. Applies to title trigger and IRC connection.
# Don't enable unless neccessary.
# optional, disabled if not specified
#skip_cert_validation = false
[irc]
# IRC server hostname to connect to.
host = "karx.xyz"
# Port of the IRC server.
port = 6697
# Whether to use SSL/TLS or not.
tls = true
# IRC username of the bot.
username = "uberbot"
# Channels the bot will join.
channels = ["#main", "#no-normies"]
# Password to use during SASL authentication.
# optional, SASL authentication disabled if not set
#sasl_pass = "1234"
# Nickname of the bot.
# optional, default: same as username
#nickname = "amazingbot"
# Alternative nicks to use when the bot can't use 'nickname'.
# optional, default: ["<nickname>_", "<nickname>__"]
#alt_nicks = ["notsoamazingbot", "someonetookmynick"]
# IRC user mode to set after connecting.
# optional, default: none
#mode = "+B"
[bot]
# Command prefixes that the bot will react to.
prefixes = ["u!", "yo uberbot "]
# Controls how many last messages will be stored per-user. Used for quoting.
history_depth = 5
# Controls how many search results will be shown on a single page
# when using quote search.
# optional, default: 3
#search_limit = 5
# Path to the SQLite3 database where quotes will be stored.
# optional, default: uberbot.db3
#db_path = "database.db3"
# User agent used for title requests. Important for sites like crates.io which require
# a user agent to be set. Default: uberbot $VERSION (reqwest)
#user_agent = "amazingbot"
# Allows disabling specific triggers in certain channels.
# You can also disable a trigger in all channels by using '*'.
# Currently available triggers are: sed, title, spotify
# optional, default: all triggers allowed
#[bot.ignored_triggers]
#sed = ["#dev"] # disables sed in #dev
#title = ["*"] # disables title completely
# bird-lg traceroute
# requires a server running bird-lg-go (https://github.com/xddxdd/bird-lg-go)
# optional, trace commands disabled if not set
#[trace]
#base_url = "catgirls.dn42" # base url to the server running the birdlg proxy
#port = 9999 # port of the birdlg proxy
#server = ["at-vie1", "us-pno1", "fi-hel1"] # subdomains to the base url of the server running the birdlg proxy
# DNS lookups
# optional, dns commands disabled if not set
#[dns] # set this if you want to enable DNS lookups
#server = "1.1.1.1" # optional, set a custom DNS server, will use the system resolver by default
# Spotify module. Shows metadata about Spotify URLs sent in chat.
# optional, spotify functionality disabled if not set
#[spotify]
# Spotify Client Credentials.
# You can get those from https://developer.spotify.com/dashboard/
#client_id = ""
#client_secret = ""
# Web service. Exposes HTTP APIs that extend the bot's features
# (currently only webhooks).
# optional, web service disabled if not set
#[web]
#listen = "127.0.0.1:8080"
#[web.webhooks]
# format: "<path>" = "<irc channel>"
# for example:
#"devel" = "#dev" # http://127.0.0.1:8080/devel
#"chaospeople" = "#chaos" # http://127.0.0.1:8080/chaospeople