2016-06-21 19:56:53 +02:00
|
|
|
# This is a sample configuration file for PyLink. You'll likely want to rename it to pylink.yml
|
2015-07-22 20:46:38 +02:00
|
|
|
# and begin your configuration there.
|
|
|
|
|
|
|
|
# Note: lines starting with a "#" are comments and will be ignored.
|
2016-04-03 07:26:20 +02:00
|
|
|
# Note 2: Use SPACES, NOT tabs to indent, or you will get parser errors on start!
|
2015-07-22 20:46:38 +02:00
|
|
|
|
2015-03-19 20:55:18 +01:00
|
|
|
bot:
|
2015-07-18 08:44:52 +02:00
|
|
|
# Sets nick, user/ident, and real name.
|
2016-07-03 07:18:10 +02:00
|
|
|
nick: PyLink
|
2016-06-11 19:36:01 +02:00
|
|
|
ident: pylink
|
2015-07-07 21:03:30 +02:00
|
|
|
realname: PyLink Service Client
|
2015-08-25 03:14:35 +02:00
|
|
|
|
|
|
|
# Server description (shown in /links, /whois, etc.)
|
|
|
|
serverdesc: PyLink Server
|
|
|
|
|
2016-05-15 20:45:32 +02:00
|
|
|
# Sets the default fantasy command prefix for calling commands inside channels
|
2016-11-05 02:13:15 +01:00
|
|
|
# (requires fantasy plugin).
|
2016-05-15 20:45:32 +02:00
|
|
|
prefix: "&"
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2015-11-29 05:46:53 +01:00
|
|
|
# Determines whether the bot will reply to commands prefixed with its nick
|
|
|
|
# (case sensitive and requires the fantasy plugin).
|
|
|
|
respondtonick: true
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Custom fantasy command prefixes for other service bots if they are loaded
|
|
|
|
# (requires fantasy plugin).
|
2016-05-15 20:45:32 +02:00
|
|
|
prefixes:
|
|
|
|
games: "@"
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Determines whether hideoper modes should be respected in WHOIS replies.
|
2016-05-21 05:48:41 +02:00
|
|
|
# Defaults to true if not specified.
|
|
|
|
whois_use_hideoper: true
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Determines whether extended WHOIS replies should be sent to users with
|
|
|
|
# +B set (marked as a bot). For better security, it is recommended to leave this off.
|
2016-07-12 00:01:34 +02:00
|
|
|
whois_show_extensions_to_bots: false
|
|
|
|
|
2016-07-02 06:25:58 +02:00
|
|
|
# Determines whether PyLink service clients should protect themselves from
|
|
|
|
# kicks, kills, etc. using IRCd-side servprotect modes. For this to work
|
2016-11-05 02:13:15 +01:00
|
|
|
# properly, this usually requires that PyLink be U-Lined. This defaults to
|
2016-07-02 06:25:58 +02:00
|
|
|
# False.
|
|
|
|
protect_services: false
|
|
|
|
|
2016-07-08 07:16:21 +02:00
|
|
|
# Determines how long plugins should wait (in seconds) before flushing their
|
|
|
|
# databases to disk. Defaults to 300 seconds. Changes here require a reload
|
|
|
|
# of all database-enabled plugins to take effect.
|
|
|
|
save_delay: 300
|
|
|
|
|
2017-02-17 02:41:07 +01:00
|
|
|
# Determines whether services should default to sending command responses as private notices,
|
|
|
|
# even if the command was called in a channel. This defaults to False.
|
|
|
|
#prefer_private_replies: false
|
|
|
|
|
2017-02-18 21:54:26 +01:00
|
|
|
# Determines whether spawning additional services for bots (e.g. Automode, Games) should be
|
|
|
|
# enabled. This defaults to True, unless a network's protocol module doesn't support spawning
|
|
|
|
# extra service bots.
|
|
|
|
#spawn_services: true
|
|
|
|
|
2017-03-09 07:30:32 +01:00
|
|
|
# Defines extra directories to look up plugins and protocol modules in.
|
|
|
|
# Environment variables (e.g. $HOME) and home folders (~) are expanded here, in that order.
|
|
|
|
#plugin_dirs: ["~/my-plugins", "~/pylink-contrib-modules/plugins"]
|
|
|
|
#protocol_dirs: ["~/pylink-contrib-modules/protocols"]
|
|
|
|
|
2015-03-19 20:55:18 +01:00
|
|
|
login:
|
2016-12-17 03:40:27 +01:00
|
|
|
# NOTE: for users migrating from PyLink < 1.1, the old login:user/login:password settings
|
|
|
|
# have been deprecated. We strongly recommend migrating to the new "accounts:" block below, as
|
|
|
|
# it supports multiple accounts, hashed passwords, and allows more flexibility (accounts no
|
2017-02-20 06:40:00 +01:00
|
|
|
# longer imply admin access).
|
|
|
|
|
|
|
|
# IMPORTANT: If you're switching from login:user/login:password, you MUST ADD YOURSELF to a
|
|
|
|
# "permissions:" block like the one below, or you will lose IRC administration access to your
|
|
|
|
# PyLink daemon!
|
2016-11-08 06:01:28 +01:00
|
|
|
accounts:
|
2016-12-17 03:40:27 +01:00
|
|
|
# Creates an account with username "user1". You can define other usernames at the
|
|
|
|
# same level here (key name is user name).
|
2016-11-08 06:01:28 +01:00
|
|
|
user1:
|
2016-11-20 02:16:04 +01:00
|
|
|
# Defines the password for the user. You can encrypt passwords using the
|
|
|
|
# 'mkpasswd' command or the 'pylink-mkpasswd' utility included with PyLink.
|
2016-11-20 02:47:55 +01:00
|
|
|
password: "$6$rounds=81447$WlVlZYCgbnjPmVqy$28Tu/Zl0xNpePqimax2wABKn5GCoWomYEI1Pu5jqYyQNULazR4BxQmscZ0MgBHqBCCke.3u5eOtBSZwL3WwVf0"
|
2016-11-08 06:01:28 +01:00
|
|
|
|
2016-11-20 02:16:04 +01:00
|
|
|
# Determines whether the password given is in plain-text. Defaults to false
|
|
|
|
# (plain text) for backwards compatibility.
|
|
|
|
encrypted: true
|
2015-03-19 20:55:18 +01:00
|
|
|
|
2016-12-10 05:57:24 +01:00
|
|
|
permissions:
|
2016-12-17 03:40:27 +01:00
|
|
|
# Permissions are described in more detail in example-permissions.yml, if you want to
|
|
|
|
# customize permissions further.
|
2016-12-10 05:57:24 +01:00
|
|
|
|
|
|
|
# Replace ABC123 with your PyLink account name (configured above)
|
|
|
|
# in order to give yourself admin access.
|
|
|
|
"$pylinkacc:ABC123":
|
|
|
|
- "*"
|
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
servers:
|
2016-06-05 03:39:18 +02:00
|
|
|
# Please note: these are only EXAMPLE link blocks. You should edit them and
|
|
|
|
# remove ones that you don't need in your config.
|
2016-06-11 19:44:14 +02:00
|
|
|
|
2016-06-05 05:31:25 +02:00
|
|
|
# Short name for the network. This is used for relay's nick suffixes, the
|
2017-01-02 21:30:38 +01:00
|
|
|
# network plugin's (dis)connect commands, and various other places internally.
|
|
|
|
# CHANGE THIS to some abbreviation representing your network; usually
|
|
|
|
# something 3-5 characters should be good.
|
2015-12-22 19:31:56 +01:00
|
|
|
inspnet:
|
2017-01-02 21:30:38 +01:00
|
|
|
|
2016-06-11 20:29:11 +02:00
|
|
|
# Server IP, port, and passwords. The ip: field also supports resolving
|
2016-08-10 20:28:35 +02:00
|
|
|
# hostnames.
|
2015-07-10 23:17:43 +02:00
|
|
|
ip: 127.0.0.1
|
|
|
|
port: 7000
|
|
|
|
recvpass: "abcd"
|
|
|
|
sendpass: "abcd"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2017-01-02 21:30:24 +01:00
|
|
|
# Set the bind host, useful for multi-homed hosts.
|
|
|
|
#bindhost: 1.2.3.4
|
|
|
|
|
2015-09-20 20:55:51 +02:00
|
|
|
# The full network name, used by plugins.
|
2015-12-22 19:31:56 +01:00
|
|
|
netname: "InspIRCd Network"
|
2015-09-20 20:55:51 +02:00
|
|
|
|
2015-07-10 23:17:43 +02:00
|
|
|
# Hostname we will use to connect to the remote server
|
2015-12-22 19:31:56 +01:00
|
|
|
hostname: "pylink.yournet.local"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# SID - required for TS6 and TS6-like servers. This must be three characters:
|
|
|
|
# the first char must be a digit [0-9], and the remaining two chars may
|
2015-12-31 01:54:51 +01:00
|
|
|
# be either uppercase letters [A-Z] or digits.
|
2016-08-03 06:10:10 +02:00
|
|
|
sid: "0PY"
|
2015-07-12 05:09:36 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# SID range - the range of SIDs PyLink is allowed to use to generate
|
|
|
|
# server IDs. On TS6, this should be a combination of digits, letters,
|
|
|
|
# and #'s. Each # denotes a range (0-9A-Z) of characters that can be
|
|
|
|
# used by PyLink to generate appropriate SIDs. You will want to make
|
|
|
|
# sure no other servers are using this range.
|
2016-11-05 02:13:15 +01:00
|
|
|
# There must be at least one # in this entry.
|
2015-08-24 06:15:49 +02:00
|
|
|
sidrange: "8##"
|
|
|
|
|
2017-02-27 03:16:15 +01:00
|
|
|
# Autojoin channels. The "channels" option affects all service bots, but you can also
|
|
|
|
# configure channels per service using keys in the name of "<servicename>_channels"
|
|
|
|
# Comment out or remove these keys if you don't want service bots# to join any channels by
|
|
|
|
# default.
|
2015-07-10 23:17:43 +02:00
|
|
|
channels: ["#pylink"]
|
2017-02-27 03:16:15 +01:00
|
|
|
pylink_channels: ["#services"]
|
|
|
|
automode_channels: ["#chat"]
|
2015-08-04 08:20:19 +02:00
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Sets the protocol module to use for this network - see the README for a
|
|
|
|
# list of supported IRCds.
|
2015-07-10 23:17:43 +02:00
|
|
|
protocol: "inspircd"
|
2015-04-25 07:37:07 +02:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Sets autoconnect delay - comment this out or set the value below 1 to
|
|
|
|
# disable autoconnect entirely.
|
2015-07-15 20:53:07 +02:00
|
|
|
autoconnect: 5
|
|
|
|
|
2016-11-08 06:01:28 +01:00
|
|
|
# Sets the ping frequency in seconds (i.e. how long we should wait between
|
2016-11-05 02:13:15 +01:00
|
|
|
# sending pings to our uplink). When more than two consecutive pings are missed,
|
|
|
|
# PyLink will disconnect with a ping timeout. This defaults to 90 if not set.
|
2016-06-28 07:46:53 +02:00
|
|
|
pingfreq: 90
|
2015-07-18 08:44:52 +02:00
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# If enabled, this opts this network out of relay IP sharing: this network
|
2016-04-18 21:29:15 +02:00
|
|
|
# will not have its users' IPs sent across the relay, and it will not see any
|
|
|
|
# IPs of other networks' users.
|
|
|
|
#relay_no_ips: true
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Sets the max nick length for the network. It is important that this is
|
2015-12-31 01:54:51 +01:00
|
|
|
# set correctly, or PyLink might introduce a nick that is too long and
|
2016-06-28 07:48:28 +02:00
|
|
|
# cause netsplits! This defaults to 30 if not set.
|
2015-08-04 04:42:26 +02:00
|
|
|
maxnicklen: 30
|
|
|
|
|
2016-07-29 07:49:05 +02:00
|
|
|
# Toggles SSL for this network. Defaults to False if not specified.
|
2016-01-31 08:37:01 +01:00
|
|
|
#ssl: true
|
2015-08-12 11:00:43 +02:00
|
|
|
|
2016-07-29 07:49:05 +02:00
|
|
|
# Optional SSL cert/key to pass to the uplink server.
|
2016-01-31 08:37:01 +01:00
|
|
|
#ssl_certfile: pylink-cert.pem
|
|
|
|
#ssl_keyfile: pylink-key.pem
|
2015-08-11 05:24:55 +02:00
|
|
|
|
2015-08-12 11:00:43 +02:00
|
|
|
# Optionally, you can set this option to verify the SSL certificate
|
2016-01-31 08:04:13 +01:00
|
|
|
# fingerprint of your uplink.
|
|
|
|
#ssl_fingerprint: "e0fee1adf795c84eec4735f039503eb18d9c35cc"
|
|
|
|
|
|
|
|
# This sets the hash type for the fingerprint (md5, sha1, sha256, etc.)
|
|
|
|
# Valid values include md5 and sha1-sha512, though others may be
|
|
|
|
# supported depending on your system: see
|
|
|
|
# https://docs.python.org/3/library/hashlib.html
|
|
|
|
# This setting defaults to sha256.
|
|
|
|
#ssl_fingerprint_type: sha256
|
2015-08-12 11:00:43 +02:00
|
|
|
|
2015-08-04 08:20:19 +02:00
|
|
|
ts6net:
|
2015-10-03 08:17:57 +02:00
|
|
|
ip: ::1
|
|
|
|
|
2016-06-11 20:29:11 +02:00
|
|
|
# Determines whether IPv6 should be used for this connection. Should the ip:
|
2016-11-05 02:13:15 +01:00
|
|
|
# above be a hostname instead of an IP, this will also affect whether A records
|
|
|
|
# (no IPv6) or AAAA records (IPv6) will be used in resolving it.
|
2015-10-03 08:17:57 +02:00
|
|
|
ipv6: yes
|
|
|
|
|
2015-08-04 08:20:19 +02:00
|
|
|
port: 7000
|
|
|
|
recvpass: "abcd"
|
|
|
|
sendpass: "abcd"
|
|
|
|
hostname: "pylink.example.com"
|
|
|
|
sid: "8PY"
|
2015-12-22 19:31:56 +01:00
|
|
|
netname: "some TS6 network"
|
|
|
|
sidrange: "8P#"
|
2015-08-04 08:20:19 +02:00
|
|
|
|
|
|
|
protocol: "ts6"
|
|
|
|
autoconnect: 5
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Note: /'s in nicks are automatically converted to |'s for TS6
|
2016-11-05 02:13:15 +01:00
|
|
|
# networks (charybdis, etc.), since they don't allow "/" in nicks.
|
2015-08-04 08:20:19 +02:00
|
|
|
separator: "|"
|
|
|
|
|
|
|
|
# The following options are specific to TS6 servers:
|
2015-12-31 01:54:51 +01:00
|
|
|
# Toggles owner (+y), admin (+a), and halfop (+h) support for
|
|
|
|
# shadowircd/elemental-ircd.
|
2015-08-04 08:20:19 +02:00
|
|
|
# This defaults to off for the best compatibility.
|
|
|
|
use_owner: false
|
|
|
|
use_admin: false
|
|
|
|
use_halfop: false
|
|
|
|
|
|
|
|
# Toggles support of shadowircd/elemental-ircd specific channel modes:
|
2016-11-05 02:13:15 +01:00
|
|
|
# +T (no notice), +u (hidden ban list), +E (no kicks), +J (blocks kickrejoin),
|
2015-08-04 08:20:19 +02:00
|
|
|
# +K (no repeat messages), +d (no nick changes), and user modes:
|
2016-11-05 02:13:15 +01:00
|
|
|
# +B (bot), +C (blocks CTCP), +D (deaf), +V (no invites), +I (hides WHOIS channel list)
|
2015-08-04 08:20:19 +02:00
|
|
|
use_elemental_modes: false
|
|
|
|
|
2016-04-02 19:13:45 +02:00
|
|
|
unrealnet:
|
|
|
|
ip: 1.2.3.4
|
|
|
|
port: 8067
|
2016-07-29 09:32:02 +02:00
|
|
|
|
|
|
|
# Received and sent passwords. For passwordless links using SSL fingerprints, simply set
|
|
|
|
# these two fields to "*" and enable SSL with a cert and key file.
|
2016-04-02 19:13:45 +02:00
|
|
|
recvpass: "coffee"
|
|
|
|
sendpass: "tea"
|
2016-07-29 09:32:02 +02:00
|
|
|
#ssl: true
|
|
|
|
#ssl_certfile: mycert.pem
|
|
|
|
#ssl_keyfile: mycert.pem
|
|
|
|
|
2016-04-02 19:13:45 +02:00
|
|
|
hostname: "pylink.example.com"
|
|
|
|
sid: "2PY"
|
|
|
|
netname: "This should match your UnrealIRCd config"
|
|
|
|
sidrange: "8##"
|
|
|
|
channels: []
|
|
|
|
protocol: "unreal"
|
|
|
|
autoconnect: 5
|
|
|
|
|
2016-06-11 19:44:14 +02:00
|
|
|
# You can also define network-specific nicks and idents for various service
|
|
|
|
# bots, using the configuration options "servicename_nick" and "servicename_ident".
|
|
|
|
#pylink_nick: MagicServ
|
|
|
|
#pylink_ident: magicserv
|
|
|
|
#games_nick: MagicGames
|
|
|
|
#games_ident: magicgames
|
|
|
|
|
2016-04-18 07:48:45 +02:00
|
|
|
nefarious:
|
2016-08-10 20:28:35 +02:00
|
|
|
ip: somenet.ddns.local
|
|
|
|
#ipv6: false
|
2016-04-18 07:48:45 +02:00
|
|
|
port: 45454
|
|
|
|
recvpass: "recv"
|
|
|
|
sendpass: "send"
|
|
|
|
hostname: "pylink.midnight.vpn"
|
|
|
|
|
|
|
|
# For P10, the SID and SID range options are just numbers. Make sure nothing
|
|
|
|
# else is using the range you're reserving for PyLink.
|
|
|
|
sid: 50
|
|
|
|
sidrange: "100-150"
|
|
|
|
channels: ["#lounge"]
|
|
|
|
protocol: nefarious
|
|
|
|
autoconnect: 5
|
|
|
|
netname: "Nefarious test server"
|
|
|
|
|
2016-06-28 07:48:28 +02:00
|
|
|
# The following options are specific to Nefarious servers.
|
2016-04-18 07:48:45 +02:00
|
|
|
# Halfop is optional in Nefarious. This should match your IRCd configuration.
|
|
|
|
use_halfop: false
|
|
|
|
|
|
|
|
# Determines whether account-based cloaks should be used (someone.users.yournet.org
|
|
|
|
# format). This should match your IRCd configuration:
|
|
|
|
# ENABLE this if HOST_HIDING_STYLE is set to either 1 or 3.
|
|
|
|
use_account_cloaks: true
|
|
|
|
|
|
|
|
# The cloak suffix to be used for account-based cloaks. This **MUST** match your
|
|
|
|
# IRCd configuration if use_account_cloaks is enabled.
|
|
|
|
cloak_suffix: "users.yournet.org"
|
|
|
|
|
|
|
|
# Determines whether account-based cloaks should be used for opers
|
|
|
|
# (someone.opers.yournet.org format). If use_account_cloaks is disabled,
|
|
|
|
# this will have no effect. This should match your IRCd configuration:
|
|
|
|
use_oper_account_cloaks: true
|
|
|
|
|
|
|
|
# The cloak suffix to be used for IRCop account-based cloaks. This **MUST** match your
|
|
|
|
# IRCd configuration if use_oper_account_cloaks is enabled.
|
|
|
|
oper_cloak_suffix: "staff.yournet.org"
|
|
|
|
|
|
|
|
# Determines whether UnrealIRCd-style hashed-host cloaks will be used.
|
|
|
|
# This should match your IRCd configuration:
|
|
|
|
# ENABLE this if HOST_HIDING_STYLE is set to either 2 or 3.
|
|
|
|
use_hashed_cloaks: true
|
|
|
|
|
|
|
|
# Determines whether extended accounts should be used for this network.
|
|
|
|
# This **MUST** match the EXTENDED_ACCOUNTS setting in your IRCd configuration.
|
|
|
|
# Disable this if you are using X3, and leave it on for any other service package
|
|
|
|
# (atheme, etc.)
|
|
|
|
use_extended_accounts: true
|
|
|
|
|
2016-07-29 07:49:25 +02:00
|
|
|
# Sample Clientbot configuration, if you want to connect PyLink as a bot to relay somewhere
|
|
|
|
# (or do other bot things).
|
|
|
|
magicnet:
|
|
|
|
ip: 1.2.3.4
|
|
|
|
port: 6697
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Server password (optional). Some networks also forward this to NickServ, so you can
|
|
|
|
# use it to log in on connect.
|
2016-07-29 07:49:25 +02:00
|
|
|
#sendpass: "wastedbytes103"
|
|
|
|
|
|
|
|
channels: ["#this-works-as-usual"]
|
|
|
|
protocol: "clientbot"
|
|
|
|
|
2017-02-18 21:08:26 +01:00
|
|
|
# Once again, you can override the nick and ident of service bots on specific networks using
|
|
|
|
# the "servicename_nick" and "servicename_ident" options.
|
2016-07-29 07:49:25 +02:00
|
|
|
pylink_nick: pybot
|
|
|
|
#pylink_ident: pybot
|
|
|
|
|
2016-12-18 01:10:09 +01:00
|
|
|
# SSL options. Certfile and keyfile are optional, but can be used for CertFP/SASL external
|
|
|
|
# if supported.
|
2016-07-29 07:49:25 +02:00
|
|
|
ssl: true
|
|
|
|
#ssl_certfile: mycert.pem
|
|
|
|
#ssl_keyfile: mycert.pem
|
|
|
|
|
2016-12-18 01:10:09 +01:00
|
|
|
# SASL login: for mechanisms, only EXTERNAL (SSL cert) and PLAIN (username and password)
|
|
|
|
# are supported so far.
|
|
|
|
# SASL PLAIN requires the sasl_username and sasl_password options to be set, while
|
|
|
|
# SASL EXTERNAL requires ssl, ssl_certfile, and ssl_keyfile to work.
|
|
|
|
#sasl_mechanism: "PLAIN"
|
|
|
|
#sasl_username: "mIRCsKripterz"
|
|
|
|
#sasl_password: "DownLoaditn00b!!!"
|
|
|
|
|
2016-12-19 10:06:49 +01:00
|
|
|
# If this option is enabled, the bot will attempt SASL authentication even after it's
|
|
|
|
# connected, as services become available throughout netsplits and reconnects.
|
|
|
|
# Note: This requires an IRC server capable of IRCv3.2 cap-notify and sasl:
|
|
|
|
# InspIRCd 3.x and charybdis 4+ (and derivatives) are some compatible examples (as of 2016-12-19)
|
|
|
|
#sasl_reauth: true
|
|
|
|
|
2016-08-10 22:24:57 +02:00
|
|
|
# Autoconnect works like usual.
|
|
|
|
autoconnect: 30
|
|
|
|
|
2016-08-22 02:24:18 +02:00
|
|
|
# Message throttling: when set to a non-zero value, only one message will be sent every X
|
|
|
|
# seconds. If your bot is constantly running into Excess Flood errors, raising this to
|
|
|
|
# something like 0.5 or 1.0 should help. Defaults to 0.01 if not set.
|
|
|
|
throttle_time: 0.3
|
|
|
|
|
2016-09-01 03:10:51 +02:00
|
|
|
# Clientbot also supports auto perform, using raw IRC messages.
|
|
|
|
#autoperform:
|
|
|
|
# - "NOTICE somebody :hello, i've connected"
|
|
|
|
|
2016-10-10 04:03:46 +02:00
|
|
|
# Determines whether oper statuses should be tracked on this Clientbot network. This
|
|
|
|
# defaults to False for the best security, since oper status may allow more access to the
|
|
|
|
# entire PyLink service than what's desired, even when PyLink is only connected as a bot.
|
|
|
|
track_oper_statuses: false
|
|
|
|
|
2017-02-25 04:16:01 +01:00
|
|
|
# Determines whether messages from unknown clients (servers, clients not sharing in a -n
|
|
|
|
# channel, etc.) should be forwarded via the PyLink server. If this is disabled, these
|
|
|
|
# messages will be silently dropped. This overrides the "accept_weird_senders" option in the
|
|
|
|
# "relay:" configuration block, and defaults to True for consistency with older releases.
|
|
|
|
#relay_weird_senders: false
|
|
|
|
|
2015-04-25 07:37:07 +02:00
|
|
|
# Plugins to load (omit the .py extension)
|
|
|
|
plugins:
|
2016-11-05 02:13:15 +01:00
|
|
|
# Commands plugin: Provides simple commands for things like checking login
|
|
|
|
# status, and showing info on users and channels.
|
2015-06-02 22:37:35 +02:00
|
|
|
- commands
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Networks plugin: Allows you to manage connections to networks while
|
2015-12-31 01:54:51 +01:00
|
|
|
# PyLink is running.
|
2015-09-03 08:08:04 +02:00
|
|
|
- networks
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2016-06-15 20:31:40 +02:00
|
|
|
# Ctcp plugin: handles basic CTCP replies (VERSION, etc).
|
|
|
|
- ctcp
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Oper commands plugin: Provides a subset of network management commands.
|
2015-12-19 06:43:18 +01:00
|
|
|
# (KILL, JUPE, etc.)
|
|
|
|
# Note: these commands will be made available to anyone who's opered on your
|
|
|
|
# network, so make sure your opers are trustworthy!
|
2016-01-31 08:37:01 +01:00
|
|
|
#- opercmds
|
2015-12-19 06:43:18 +01:00
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Bots plugin: Allows you to manipulate pseudo-clients (bots) on networks.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- bots
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Relay plugin: Server-side (like Janus) relay plugin. See the relay: block
|
2015-12-31 01:54:51 +01:00
|
|
|
# below for configuration.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- relay
|
2015-09-26 18:38:50 +02:00
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# Relay Clientbot support: this allows channel messages and events like
|
2016-08-08 07:08:03 +02:00
|
|
|
# JOIN, PART, KICK, etc. to relay over networks using Clientbot. You will
|
|
|
|
# want this loaded if you're using PyLink as a relay bot.
|
|
|
|
#- relay_clientbot
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# Fantasy plugin: Allows you to trigger commands in channels by PyLink's
|
2016-11-05 02:13:15 +01:00
|
|
|
# nick or configurable prefix characters.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- fantasy
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2016-11-08 06:01:28 +01:00
|
|
|
# Changehost plugin: Automatically changes the hostmask (i.e. sets vHosts) on
|
2016-11-05 02:13:15 +01:00
|
|
|
# matching users as they connect. This requires the changehost: block
|
2015-12-31 01:54:51 +01:00
|
|
|
# to be configured correctly below.
|
2016-01-31 08:37:01 +01:00
|
|
|
#- changehost
|
2016-07-27 01:01:42 +02:00
|
|
|
|
2016-07-24 07:15:54 +02:00
|
|
|
# Automode plugin: allows assigning channel access to specific hostmasks or
|
|
|
|
# exttargets. See https://github.com/GLolol/PyLink/blob/master/docs/automode.md
|
|
|
|
# for a usage guide.
|
|
|
|
#- automode
|
2015-12-31 01:54:51 +01:00
|
|
|
|
2016-09-24 20:19:16 +02:00
|
|
|
# Servermaps plugin: displays network /map's from the PyLink server's perspective.
|
|
|
|
#- servermaps
|
|
|
|
|
2017-02-22 02:02:26 +01:00
|
|
|
# Servprotect plugin: disconnects from network if a certain limit
|
|
|
|
# of kills/saves per X seconds is met.
|
|
|
|
#- servprotect
|
|
|
|
|
2016-06-05 05:31:25 +02:00
|
|
|
logging:
|
|
|
|
# This configuration block defines targets that PyLink should log commands,
|
|
|
|
# errors, etc., to.
|
|
|
|
|
|
|
|
# This sets the level for STDOUT logging, which is always enabled. Valid
|
|
|
|
# settings include DEBUG, INFO, WARNING, ERROR, and CRITICAL: see
|
|
|
|
# https://docs.python.org/3/library/logging.html#logging-levels for details.
|
|
|
|
stdout: INFO
|
|
|
|
|
|
|
|
channels:
|
2016-11-05 02:13:15 +01:00
|
|
|
# Logs to channels on the specified networks.
|
|
|
|
# Make sure that the main PyLink client is also configured to join your
|
|
|
|
# log channel in the "channels:" block for the relevant networks.
|
2016-06-25 23:10:04 +02:00
|
|
|
|
|
|
|
# Note: Log messages are forwarded over relay, so you will get duplicate
|
2016-06-05 05:31:25 +02:00
|
|
|
# messages if you add log blocks for more than one channel in one
|
|
|
|
# relay.
|
2016-06-25 23:10:04 +02:00
|
|
|
|
|
|
|
# Note 2: DEBUG logging is not supported here: any log level settings
|
|
|
|
# below INFO be automatically raised to INFO.
|
2016-06-05 05:31:25 +02:00
|
|
|
|
|
|
|
inspnet:
|
|
|
|
"#services":
|
|
|
|
loglevel: INFO
|
|
|
|
"#pylink-notifications":
|
|
|
|
loglevel: WARNING
|
|
|
|
|
|
|
|
ts6net:
|
|
|
|
"#services":
|
|
|
|
loglevel: INFO
|
|
|
|
|
|
|
|
files:
|
|
|
|
# Logs to file targets. These will be placed in the log/ folder in the
|
|
|
|
# PyLink directory, with a filename based on the current instance name
|
2016-11-05 02:13:15 +01:00
|
|
|
# and the target name: instancename-targetname.log
|
2016-06-05 05:31:25 +02:00
|
|
|
|
|
|
|
# When running with ./pylink, this will create log/pylink-errors.log
|
|
|
|
# When running with ./pylink someconf.yml, this will create log/someconf-errors.log
|
|
|
|
"errors":
|
|
|
|
loglevel: ERROR
|
|
|
|
|
|
|
|
# Ditto above. When running with ./pylink, it will use log/pylink-commands.log
|
|
|
|
# When running with ./pylink someconf.yml, this will create log/someconf-commands.log
|
|
|
|
"commands":
|
|
|
|
loglevel: INFO
|
|
|
|
|
2016-09-09 03:02:55 +02:00
|
|
|
# Uncomment this to enable debug logging. This is only needed if you're developing for
|
|
|
|
# PyLink or are requested to enable this when reporting a bug.
|
|
|
|
#"debug":
|
|
|
|
# loglevel: DEBUG
|
|
|
|
|
2016-10-06 05:30:32 +02:00
|
|
|
#filerotation:
|
2016-08-18 07:00:42 +02:00
|
|
|
# Configures optional log file rotation. When enabled, PyLink will create rotate files
|
|
|
|
# in the format pylink-commands.log, pylink-commands.log.1, pylink-commands.log.2, etc.
|
|
|
|
# If either max_bytes or backup_count is 0, log rotation will be disabled.
|
|
|
|
|
|
|
|
# Max amount of bytes per file, before rotation is done. Defaults to 50 MiB (52428800 bytes).
|
|
|
|
#max_bytes: 52428800
|
|
|
|
|
|
|
|
# Amount of backups to make. Defaults to 5.
|
|
|
|
#backup_count: 5
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
changehost:
|
|
|
|
# This block configures the Changehost plugin. You don't need this if you
|
|
|
|
# aren't using it.
|
|
|
|
|
2017-01-03 16:30:35 +01:00
|
|
|
# Sets the networks where Changehost should be enabled. Please note: changehost does NOT support
|
|
|
|
# arbitrarily cloaking clients introduced by PyLink (e.g. relay clients), as doing so would make
|
|
|
|
# ban matching impossible. In these cases, it is the remote admin's job to turn on cloaking on
|
|
|
|
# their IRCd!
|
2015-12-31 01:54:51 +01:00
|
|
|
enabled_nets:
|
|
|
|
- inspnet
|
|
|
|
- ts6net
|
|
|
|
|
2016-11-20 20:53:55 +01:00
|
|
|
# Sets the networks where Changehost hosts should be enforced: that is, any attempts
|
|
|
|
# by the user or other services to overwrite a host will be reverted.
|
|
|
|
#enforced_nets:
|
|
|
|
# - inspnet
|
|
|
|
|
2016-11-20 21:33:58 +01:00
|
|
|
# Sets the masks that Changehost enforcement should ignore: these can be users with certain
|
|
|
|
# hosts, exttargets, etc.
|
|
|
|
enforce_exceptions:
|
|
|
|
- "*!*@yournet/staff/*"
|
|
|
|
#- "$account"
|
|
|
|
|
2016-11-20 21:34:11 +01:00
|
|
|
# Determines whether Changehost rules should also match the host portion of a mask by IP and
|
|
|
|
# real hosts. These default to false.
|
|
|
|
#match_ip: false
|
|
|
|
#match_realhosts: false
|
|
|
|
|
2015-12-31 01:54:51 +01:00
|
|
|
# This sets the hostmasks that Changehost should look for. Whenever someone
|
|
|
|
# with a matching nick!user@host connects, their host will be set to the
|
|
|
|
# text defined. The following substitutions are available here:
|
2016-08-03 07:27:14 +02:00
|
|
|
# $uid, $ts (time of connection), $nick, $realhost, $ident, and $ip.
|
2015-12-31 01:54:51 +01:00
|
|
|
# Invalid characters in hosts are replaced with a "-".
|
|
|
|
# Also, make sure you quote each entry so the YAML parser treats them as
|
|
|
|
# raw strings.
|
|
|
|
hosts:
|
|
|
|
|
|
|
|
# Here are some examples. Note that to keep your users' details
|
|
|
|
# private, you should probably refrain from using $ip or $realhost,
|
|
|
|
# in these hostmasks, unless cloaking is already disabled.
|
|
|
|
"*!GLolol@*.yournet.com": "$nick.opers.yournet.com"
|
|
|
|
"*!*@localhost": "some-server.hostname"
|
|
|
|
|
|
|
|
# Freenode-style masks are possible with this (though without the
|
|
|
|
# hashing)
|
|
|
|
"*!*@bnc-server.yournet.com": "yournet/bnc-users/$ident"
|
|
|
|
"*!*@ircip?.mibbit.com": "$ident.$realhost"
|
|
|
|
"WebchatUser*!*@*": "webchat/users/$ident"
|
|
|
|
|
|
|
|
relay:
|
|
|
|
# This block defines various options for the Relay plugin. You don't need this
|
|
|
|
# if you aren't using it.
|
|
|
|
|
|
|
|
# Determines whether remote opers will have user mode +H (hideoper) set on
|
|
|
|
# them. This has the benefit of lowering the oper count in /lusers and
|
|
|
|
# /stats (P|p), but only on IRCds that support it. This defaults to true
|
|
|
|
# if not set.
|
|
|
|
hideoper: true
|
|
|
|
|
|
|
|
# Determines whether real IPs should be sent across the relay. You should
|
2016-06-25 22:47:48 +02:00
|
|
|
# generally have a consensus with your linked networks on whether this should
|
2015-12-31 01:54:51 +01:00
|
|
|
# be turned on. You will see other networks' user IP addresses, and they
|
2016-04-18 21:29:15 +02:00
|
|
|
# will see yours. Individual networks can also opt out of IP sharing
|
|
|
|
# both ways by defining "relay_no_ips: true" in their server block.
|
2015-12-31 01:54:51 +01:00
|
|
|
show_ips: false
|
|
|
|
|
2016-05-20 08:30:34 +02:00
|
|
|
# Determines whether NickServ login info should be shown in the /whois output for
|
2016-07-11 07:39:16 +02:00
|
|
|
# relay users.
|
2016-05-20 08:30:34 +02:00
|
|
|
# Valid options include "all" (show this to everyone), "opers" (show only to
|
|
|
|
# opers), and "none" (disabled). Defaults to none if not specified.
|
|
|
|
whois_show_accounts: all
|
|
|
|
|
|
|
|
# Determines whether the origin server should be shown in the /whois output for
|
2016-07-11 07:39:16 +02:00
|
|
|
# relay users.
|
2016-05-20 08:30:34 +02:00
|
|
|
# Valid options include "all" (show this to everyone), "opers" (show only to
|
|
|
|
# opers), and "none" (disabled). Defaults to none if not specified.
|
|
|
|
whois_show_server: opers
|
2016-06-11 19:44:14 +02:00
|
|
|
|
2016-09-17 06:07:32 +02:00
|
|
|
# Determines whether the servers disconnecting in a netsplit should be shown when
|
|
|
|
# relaying quits due to a netsplit. Defaults to False.
|
2016-06-25 22:47:59 +02:00
|
|
|
show_netsplits: false
|
|
|
|
|
2016-07-11 08:32:04 +02:00
|
|
|
# Sets the default Relay separator. Defaults to / if not specified. The "separator"
|
|
|
|
# option in server blocks override this if specified.
|
|
|
|
separator: "/"
|
|
|
|
|
|
|
|
# Determines whether all nicks will be tagged by default, instead of only when a
|
2016-07-12 08:38:00 +02:00
|
|
|
# nick collision happens. It is HIGHLY RECOMMENDED that you enable this, unless you're
|
2016-07-11 08:32:04 +02:00
|
|
|
# absolutely sure NO ONE will be using the same nick on 2 or more networks in your
|
2016-07-12 08:38:00 +02:00
|
|
|
# relay.
|
|
|
|
# This defaults to True if not specified. Disabling this option is currently
|
|
|
|
# experimental.
|
2016-07-11 08:32:04 +02:00
|
|
|
tag_nicks: true
|
|
|
|
|
2016-07-27 01:01:42 +02:00
|
|
|
# If tag_nicks is False, this specifies a list of NICK globs that network
|
2016-11-05 02:13:15 +01:00
|
|
|
# tags should be added for anyways (e.g. network services).
|
2016-07-27 01:01:42 +02:00
|
|
|
forcetag_nicks:
|
|
|
|
- "*Serv"
|
|
|
|
|
2016-11-05 02:13:15 +01:00
|
|
|
# This determines whether private messages & notices will be forwarded over Clientbot relay,
|
2016-08-31 23:07:32 +02:00
|
|
|
# and whether the 'rpm' command will be allowed from Clientbot networks. This defaults to
|
|
|
|
# False.
|
|
|
|
allow_clientbot_pms: false
|
|
|
|
|
2016-09-24 07:49:04 +02:00
|
|
|
# Sets the suffix that relay subservers should use. Defaults to "relay" (as in net1.relay,
|
|
|
|
# net2.relay, etc.) if not specified.
|
|
|
|
#server_suffix: "relay.yournet.net"
|
|
|
|
|
2016-09-26 05:06:24 +02:00
|
|
|
# Sets whether Clientbot mode sync will be enabled. Valid options:
|
2016-12-22 09:38:39 +01:00
|
|
|
# "full" - Sync bans, ban/invite exceptions, prefix modes, and all RFC1459-standard modes. The
|
|
|
|
# bot will need op in the Clientbot channel for this to work both ways.
|
|
|
|
# "half" - Sync only bans, ban/invite exceptions, and prefix modes. The bot will need op in the
|
|
|
|
# Clientbot channel for this to work both ways.
|
2016-09-26 05:06:24 +02:00
|
|
|
# "none" - Turns off mode sync. This is the default.
|
2016-12-22 09:38:39 +01:00
|
|
|
#
|
|
|
|
# Note: when mode sync is enabled and the bot is opped, CLAIM protection will be enforced across
|
|
|
|
# Clientbot links as well. This means that the bot will try to revert any mode changes by non-ops
|
|
|
|
# or services not in the channel. The workaround is to add all Clientbot networks to the CLAIM
|
|
|
|
# list of any affected channels.
|
|
|
|
#
|
2016-09-26 05:06:24 +02:00
|
|
|
#clientbot_modesync: none
|
|
|
|
|
2017-02-25 04:16:01 +01:00
|
|
|
# Determines whether messages from unknown clients (servers, clients not sharing in a -n channel,
|
|
|
|
# etc.) should be forwarded via the PyLink server. If this is disabled, these messages will be
|
|
|
|
# silently dropped. This defaults to True for consistency with older releases.
|
|
|
|
#accept_weird_senders: false
|
|
|
|
|
2017-02-25 06:15:40 +01:00
|
|
|
# Optionally defines a message that should be sent to all leaf channels that a network owns, when
|
|
|
|
# it disconnects. This uses a template string as documented at
|
|
|
|
# https://docs.python.org/3/library/string.html#template-strings, with the following substitutions:
|
|
|
|
# $network: the name of the network that this message is being announced to
|
|
|
|
# $channel: the channel that this message is being announced to
|
|
|
|
# $homenetwork: the name of the network that disconnected
|
|
|
|
# $homechannel: the original name of the channel this message is being announced to
|
|
|
|
# If this option is empty or not set, no announcement is made.
|
|
|
|
#disconnect_announcement: >-
|
|
|
|
# Network $homenetwork has disconnected: $channel will remain open as the link is
|
|
|
|
# re-established, but new links will be disabled.
|
|
|
|
|
2017-02-22 02:02:26 +01:00
|
|
|
#servprotect:
|
2017-02-22 02:04:59 +01:00
|
|
|
# This block configures the servprotect plugin; you don't need this if you aren't using it.
|
2017-02-22 02:02:26 +01:00
|
|
|
|
2017-02-22 02:04:59 +01:00
|
|
|
# length: How many KILL/SAVE's before a disconnect?
|
2017-02-22 02:02:26 +01:00
|
|
|
#length: 5
|
|
|
|
|
2017-02-22 06:06:47 +01:00
|
|
|
# age: Determines how much time (in seconds) should pass before the servprotect cache is reset.
|
2017-02-22 02:07:32 +01:00
|
|
|
# Note: updates to this option require a reload of the servprotect plugin, which automatically
|
|
|
|
# resets the cache.
|
2017-02-22 03:14:48 +01:00
|
|
|
#age: 10
|
2017-02-22 02:02:26 +01:00
|
|
|
|
|
|
|
|
2016-07-08 06:06:28 +02:00
|
|
|
automode:
|
2017-02-18 21:40:16 +01:00
|
|
|
# The following options in this block are common to all plugins that spawn service bots (games,
|
|
|
|
# automode, etc.):
|
|
|
|
|
|
|
|
# Sets the nick of the Automode service, if you're using it. If not defined, this defaults to
|
|
|
|
# the service name ("automode" in this case).
|
2016-09-13 05:03:29 +02:00
|
|
|
nick: Automode
|
2017-02-18 21:40:16 +01:00
|
|
|
#ident: Automode
|
2016-09-24 08:07:42 +02:00
|
|
|
|
|
|
|
# For each service, you can also specify what prefix modes you want the service bot to join channels with.
|
|
|
|
# Setting this to op (+o) for Automode makes it appear more like a standard IRC service, and lessens
|
|
|
|
# the risk of mode overrides being dropped.
|
|
|
|
joinmodes: 'o'
|
2017-01-30 09:06:19 +01:00
|
|
|
|
2017-02-18 21:54:26 +01:00
|
|
|
# Determines whether a separate service bot should be spawned for this plugin. This defaults to
|
|
|
|
# True, unless a network's protocol module doesn't support spawning extra service bots.
|
|
|
|
# This option overrides the global "spawn_services" option defined in "bot:".
|
|
|
|
#spawn_service: true
|
|
|
|
|
2017-02-18 21:40:16 +01:00
|
|
|
games:
|
|
|
|
# Sets the nick of the Games service, if you're using it. This defaults to "games" if not defined.
|
|
|
|
nick: Games
|
|
|
|
|
2017-01-30 09:06:19 +01:00
|
|
|
stats:
|
|
|
|
# Determines the time format that the Stats plugin should use for showing dates + times.
|
|
|
|
# Defaults to "%a, %d %b %Y %H:%M:%S +0000" (the RFC 2812 standard) if not specified.
|
|
|
|
time_format: "%c"
|