Files
derp/config/derp.toml.example
user 16425046c8 docs: document channel config and structured logging
Add per-channel plugin control and JSON logging sections to USAGE.md,
CHEATSHEET.md, and derp.toml.example. Mark items done in ROADMAP.md.
2026-02-15 04:16:54 +01:00

38 lines
1.1 KiB
Plaintext

[server]
host = "irc.libera.chat"
port = 6697
tls = true
nick = "derp"
user = "derp"
realname = "derp IRC bot"
password = ""
# sasl_user = "account" # SASL PLAIN username (optional)
# sasl_pass = "secret" # SASL PLAIN password (optional)
# ircv3_caps = ["multi-prefix", "away-notify", "server-time"] # IRCv3 capabilities
[bot]
prefix = "!"
channels = ["#test"]
plugins_dir = "plugins"
# rate_limit = 2.0 # Messages per second (default: 2.0)
# rate_burst = 5 # Burst capacity (default: 5)
# admins = [ # Hostmask patterns (fnmatch), IRCOPs auto-detected
# "*!~user@trusted.host",
# "ops!*@*.ops.net",
# ]
[logging]
level = "info"
# format = "json" # Log format: "text" (default) or "json" (JSONL)
# -- Per-Channel Plugin Control --
# Channels without a section run all plugins.
# Channels with a `plugins` list only run those plugins.
# The `core` plugin is always active regardless of config.
# [channels."#public"]
# plugins = ["core", "dns", "cidr", "encode"]
# [channels."#ops"]
# plugins = ["core", "revshell", "payload", "exploitdb", "opslog"]