3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00

Proofread and edit the example-conf

This commit is contained in:
James Lu 2016-11-04 18:13:15 -07:00 committed by GitHub
parent 9f43c0fe17
commit d2f95acd2e

View File

@ -13,30 +13,30 @@ bot:
# Server description (shown in /links, /whois, etc.) # Server description (shown in /links, /whois, etc.)
serverdesc: PyLink Server serverdesc: PyLink Server
# Options below this require the fantasy plugin to be loaded.
# Sets the default fantasy command prefix for calling commands inside channels # Sets the default fantasy command prefix for calling commands inside channels
# (requires fantasy plugin).
prefix: "&" prefix: "&"
# Determines whether the bot will reply to commands prefixed with its nick # Determines whether the bot will reply to commands prefixed with its nick
# (case sensitive and requires the fantasy plugin). # (case sensitive and requires the fantasy plugin).
respondtonick: true respondtonick: true
# Custom fantasy command prefixes for other service bots if they are loaded. # Custom fantasy command prefixes for other service bots if they are loaded
# (requires fantasy plugin).
prefixes: prefixes:
games: "@" games: "@"
# Determines whether hideoper modes should be respected in WHOIS responses. # Determines whether hideoper modes should be respected in WHOIS replies.
# Defaults to true if not specified. # Defaults to true if not specified.
whois_use_hideoper: true whois_use_hideoper: true
# Determines whether extended WHOIS replies should be sent to users marked # Determines whether extended WHOIS replies should be sent to users with
# +B (bot). For better security, it is recommended to leave this off. # +B set (marked as a bot). For better security, it is recommended to leave this off.
whois_show_extensions_to_bots: false whois_show_extensions_to_bots: false
# Determines whether PyLink service clients should protect themselves from # Determines whether PyLink service clients should protect themselves from
# kicks, kills, etc. using IRCd-side servprotect modes. For this to work # kicks, kills, etc. using IRCd-side servprotect modes. For this to work
# properly, this requires that PyLink be U-Lined (on most IRCds). Defaults to # properly, this usually requires that PyLink be U-Lined. This defaults to
# False. # False.
protect_services: false protect_services: false
@ -72,9 +72,8 @@ servers:
# Hostname we will use to connect to the remote server # Hostname we will use to connect to the remote server
hostname: "pylink.yournet.local" hostname: "pylink.yournet.local"
# SID - required for InspIRCd and TS6 based servers. This must be three # SID - required for TS6 and TS6-like servers. This must be three characters:
# characters long. # the first char must be a digit [0-9], and the remaining two chars may
# The first char must be a digit [0-9], and the remaining two chars may
# be either uppercase letters [A-Z] or digits. # be either uppercase letters [A-Z] or digits.
sid: "0PY" sid: "0PY"
@ -83,33 +82,32 @@ servers:
# and #'s. Each # denotes a range (0-9A-Z) of characters that can be # 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 # used by PyLink to generate appropriate SIDs. You will want to make
# sure no other servers are using this range. # sure no other servers are using this range.
# There must be at least one # in the entry. # There must be at least one # in this entry.
sidrange: "8##" sidrange: "8##"
# Autojoin channels. Comment this line out if you don't want service bots # Autojoin channels. Comment this line out if you don't want service bots
# tojoin any channels by default. # to join any channels by default.
channels: ["#pylink"] channels: ["#pylink"]
# Sets the protocol module to use - see the protocols/ folder for a list # Sets the protocol module to use for this network - see the README for a
# of valid values (omitting the .py extension). # list of supported IRCds.
protocol: "inspircd" protocol: "inspircd"
# Sets autoconnect delay - comment this out or set the value below 1 to # Sets autoconnect delay - comment this out or set the value below 1 to
# disable autoconnect entirely. # disable autoconnect entirely.
autoconnect: 5 autoconnect: 5
# Sets ping frequency (i.e. how long we should wait between sending # Sets the ping frequency in seconds (i.e. how long we should wait between
# pings to our uplink). When more than two consecutive pings are missed, # 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 # PyLink will disconnect with a ping timeout. This defaults to 90 if not set.
# not set.
pingfreq: 90 pingfreq: 90
# If enabled, this opts this network out of relay IP sharing. i.e. this network # If enabled, this opts this network out of relay IP sharing: this network
# will not have its users' IPs sent across the relay, and it will not see any # will not have its users' IPs sent across the relay, and it will not see any
# IPs of other networks' users. # IPs of other networks' users.
#relay_no_ips: true #relay_no_ips: true
# Sets the max nick length for the network. It is important this is # Sets the max nick length for the network. It is important that this is
# set correctly, or PyLink might introduce a nick that is too long and # set correctly, or PyLink might introduce a nick that is too long and
# cause netsplits! This defaults to 30 if not set. # cause netsplits! This defaults to 30 if not set.
maxnicklen: 30 maxnicklen: 30
@ -136,8 +134,8 @@ servers:
ip: ::1 ip: ::1
# Determines whether IPv6 should be used for this connection. Should the ip: # Determines whether IPv6 should be used for this connection. Should the ip:
# above be a hostname instead of an IP, this will affect whether A records # above be a hostname instead of an IP, this will also affect whether A records
# (IPv4) or AAAA records (IPv6) will be used in resolving it. # (no IPv6) or AAAA records (IPv6) will be used in resolving it.
ipv6: yes ipv6: yes
port: 7000 port: 7000
@ -152,7 +150,7 @@ servers:
autoconnect: 5 autoconnect: 5
# Note: /'s in nicks are automatically converted to |'s for TS6 # Note: /'s in nicks are automatically converted to |'s for TS6
# networks, since they don't allow "/" in nicks. # networks (charybdis, etc.), since they don't allow "/" in nicks.
separator: "|" separator: "|"
# The following options are specific to TS6 servers: # The following options are specific to TS6 servers:
@ -164,11 +162,9 @@ servers:
use_halfop: false use_halfop: false
# Toggles support of shadowircd/elemental-ircd specific channel modes: # Toggles support of shadowircd/elemental-ircd specific channel modes:
# +T (no notice), +u (hidden ban list), +E (no kicks), +J (blocks # +T (no notice), +u (hidden ban list), +E (no kicks), +J (blocks kickrejoin),
# kickrejoin),
# +K (no repeat messages), +d (no nick changes), and user modes: # +K (no repeat messages), +d (no nick changes), and user modes:
# +B (bot), +C (blocks CTCP), +D (deaf), +V (no invites), +I (hides # +B (bot), +C (blocks CTCP), +D (deaf), +V (no invites), +I (hides WHOIS channel list)
# channel list)
use_elemental_modes: false use_elemental_modes: false
unrealnet: unrealnet:
@ -254,7 +250,8 @@ servers:
ip: 1.2.3.4 ip: 1.2.3.4
port: 6697 port: 6697
# Server password (optional). # Server password (optional). Some networks also forward this to NickServ, so you can
# use it to log in on connect.
#sendpass: "wastedbytes103" #sendpass: "wastedbytes103"
channels: ["#this-works-as-usual"] channels: ["#this-works-as-usual"]
@ -285,11 +282,11 @@ servers:
# Plugins to load (omit the .py extension) # Plugins to load (omit the .py extension)
plugins: plugins:
# Commands plugin: Provides core commands such as logging in, shutting down # Commands plugin: Provides simple commands for things like checking login
# PyLink, and various command help. # status, and showing info on users and channels.
- commands - commands
# Networks plugin: Allows you to manage (dis)connections to networks while # Networks plugin: Allows you to manage connections to networks while
# PyLink is running. # PyLink is running.
- networks - networks
@ -305,21 +302,21 @@ plugins:
# Bots plugin: Allows you to manipulate pseudo-clients (bots) on networks. # Bots plugin: Allows you to manipulate pseudo-clients (bots) on networks.
#- bots #- bots
# Relay plugin: Janus-style server-side relay plugin. See the relay: block # Relay plugin: Server-side (like Janus) relay plugin. See the relay: block
# below for configuration. # below for configuration.
#- relay #- relay
# Relay Clientbot extensions: this allows channel messages and events like # Relay Clientbot support: this allows channel messages and events like
# JOIN, PART, KICK, etc. to relay over networks using Clientbot. You will # JOIN, PART, KICK, etc. to relay over networks using Clientbot. You will
# want this loaded if you're using PyLink as a relay bot. # want this loaded if you're using PyLink as a relay bot.
#- relay_clientbot #- relay_clientbot
# Fantasy plugin: Allows you to trigger commands in channels by PyLink's # Fantasy plugin: Allows you to trigger commands in channels by PyLink's
# nick or a configurable prefix character. # nick or configurable prefix characters.
#- fantasy #- fantasy
# Changehost plugin: Automatically changes the hostmask of matching users # Changehost plugin: Automatically changes the hostmask (i.e. sets vHosts) on
# to a template string, as they connect. This requires the changehost: block # matching users as they connect. This requires the changehost: block
# to be configured correctly below. # to be configured correctly below.
#- changehost #- changehost
@ -338,10 +335,9 @@ logging:
stdout: INFO stdout: INFO
channels: channels:
# Log to channels on the specified networks. # Logs to channels on the specified networks.
# Make sure that the main PyLink client is configured to join your # Make sure that the main PyLink client is also configured to join your
# log channel in the channels: blocks for the networks it will be # log channel in the "channels:" block for the relevant networks.
# logging on. It will not automatically join log channels.
# Note: Log messages are forwarded over relay, so you will get duplicate # Note: Log messages are forwarded over relay, so you will get duplicate
# messages if you add log blocks for more than one channel in one # messages if you add log blocks for more than one channel in one
@ -363,7 +359,7 @@ logging:
files: files:
# Logs to file targets. These will be placed in the log/ folder in the # 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 # PyLink directory, with a filename based on the current instance name
# and the target name defined: instancename-targetname.log # and the target name: instancename-targetname.log
# Changing settings in this block will require a restart to take effect. # Changing settings in this block will require a restart to take effect.
# When running with ./pylink, this will create log/pylink-errors.log # When running with ./pylink, this will create log/pylink-errors.log
@ -468,11 +464,11 @@ relay:
tag_nicks: true tag_nicks: true
# If tag_nicks is False, this specifies a list of NICK globs that network # If tag_nicks is False, this specifies a list of NICK globs that network
# tags should be added for anyways (e.g. for network services). # tags should be added for anyways (e.g. network services).
forcetag_nicks: forcetag_nicks:
- "*Serv" - "*Serv"
# This determines whether private messages / notices will be forwarded over Clientbot relay, # This determines whether private messages & notices will be forwarded over Clientbot relay,
# and whether the 'rpm' command will be allowed from Clientbot networks. This defaults to # and whether the 'rpm' command will be allowed from Clientbot networks. This defaults to
# False. # False.
allow_clientbot_pms: false allow_clientbot_pms: false