Files
omnibot22/config.example.toml
2022-05-26 19:50:44 -07:00

68 lines
2.0 KiB
TOML

# The server host to connect to.
# There is no default for this and must be supplied.
server = "irc.example.com"
# Whether to use SSL or not.
# default: false
# use_ssl = true
# What port to connect on.
# default: 6667, or 6697 when use_ssl is set to true.
# port = 6697
# The nickname to use for this bot. Make sure it's available before you use it!
# default: omnibot
nick = "omnibot"
# A list of all channels to join by default.
# default: []
channels = ["#friends", "#chat"]
# A plugin block starts with [[plugins]]
[[plugins]]
# The module to load this plugin from. This should be a Python module.
# This is required.
module = "plugins.fortune"
# The list of channels that this plugin should listen on. This list can include
# channels outside of the channels supplied in the server config.
# By default, it will listen on all channels in the server config.
channels = ["#fortune_telling"]
# Whether this plugin is enabled.
# If this is set to false, then the plugin won't load.
# This is useful when you don't want to comment out an entire configuration
# block and instead just disable it.
# default: true
# enabled = false
# The rest of this plugin block are specific to the plugin - check the plugin's
# documentation for the values you can set.
# A list of fortunes, or a path to a list of fortunes - one per line.
fortunes = "data/fortunes.txt"
[[plugins]]
# Linkbot module will fetch the title of a value at a URL.
module = "plugins.linkbot"
# Whether URLs that are pointing to private IP addresses are allowed.
# This is recommended to be left false.
# default: false
# allow_private = false
# Additional blocked hosts, URLs, and IP ranges.
# You don't need to block things like localhost, 192.168.0.0/16, etc if you are
# using `allow_private = false` above
# default: []
blocked = [
# This can take the form of a URL,
"https://www.example.com/full-page/",
# a hostname,
"www.example.com",
# an IP address,
"8.8.8.8",
# or an IP subnet
"8.8.0.0/16"
]