-
Notifications
You must be signed in to change notification settings - Fork 2
/
bot.conf.example
181 lines (123 loc) · 5.85 KB
/
bot.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#######################################
#### Configs
#######################################
#######################################
[features]
enable_verification = True
[teamspeak connection settings]
# can be "telnet" or "ssh". Default is "telnet"
protocol = telnet
#can be IP or FQDN
host = 127.0.0.1
# 10011 = Default port for ServerQuery (telnet)
# 10022 = Default port for ServerQuery (ssh)
port = 10011
user = serveradmin
passwd = xxxxxxx
# Only for SSH.
# A standard known_hosts file.
# Host keys can be initially queried via 'ssh-keyscan.exe -t ssh-rsa -p $port $host'
# For some reason the above does not work on linux !?
#
# known_hosts_file = ./known_hosts
## Pool Settings
# Maximum connections in the pool. Should be >= 2
pool_size = 4
# Connection time to live, checked when returned to the pool
pool_ttl = 600
# Connection time to idle, checked when returned to the pool
pool_tti = 120
# Number of uses after a connection will be destroyed
pool_max_usage = 5
#######################################
#######################################
[teamspeak other settings]
# Address used in links on /commanders to join teamspeak. Default = [teamspeak connection settings].host
# server_public_address = my-ts.example.com
# Port used in links on /commanders to join teamspeak. numeric Port or "auto" to detect from virtualserver. Default = auto
# server_public_port = 12345
# Password used in links on /commanders to join teamspeak. Empty = no password. Default = None
# server_public_password = mypass
#Default is one (only change if you have multple servers)
server_id = 1
#Channel we want the bot to sit in and listen for requests
channel_name = Registration
#Group the BOT will add people to if they authenticate
verified_group = Verified
#######################################
#######################################
[bot settings]
#Name displayed to users
bot_nickname = Verify BOT
#Seconds between trying to restart bot teamspeak connection if it's connection timed out. Added to prevent loopig to death if it fails. (seconds)
bot_sleep_conn_lost=30
# How often the bot idle loop hits (seconds), this is also how often bot checks it's pending scheduled events such as broadcast message or auditng users.
bot_sleep_idle=15
# options are: ['verifyme','setguild','hideguilds','unhideguild','ping'] --Can be any combinations of options for allowed commands
cmd_list=['verifyme','setguild','hideguild','unhideguild','ping']
#Change the name of the database file the script will use
db_file_name = BOT.db
# How often to audit a user (days)
audit_period=7
# How often the bot will check if users are past the auditing policy period (days)
audit_interval=15
# Allow/restrict TeamSpeak Users coming from more than one computer (teamspeak creates new ids for users per computer, so two laptops means two different ids)
# Set to any number 1 or higher (i think it won't work past two but I don't have the means to test that many TS client ID's, maybe one day)
client_restriction_limit=2
# How frequentin seconds the bot should advertise the broadcast message info it's channel (restricted by how often the bot is checking for scheduled items changeable in config option 'bot_sleep_idle')
# Set to 0 to disable broadcasting
broadcast_message_timer=0
# The language in which the bot talks to the users. Currently, only EN and DE are supported.
# Multiple locales can be separated with a + to send messages in multiple languages, separated by a newline, eg DE+EN.
locale=EN
# Whether a user should lose all groups when his API key is no longer accepted.
# This is useful if you have groups for guilds that would enable users that lost the authentification group to still see the server.
purge_completely=False
# This is a list of groups that will stay on users, even if they lose authentification, if you enabled the purge_completely feature.
# Your admin group should always be in this list to avoid getting locked out of your own server if your left the allowed GW2 servers.
purge_whitelist=['Server Admin']
#######################################
#######################################
[auth settings]
# The guild wars 2 servers user must be on, expected as a python list Ex. ['Kaineng','Tarnished Coast']
required_servers = ['Kaineng','Tarnished Coast']
# Required Level for at least one character on account (set to 0 to disable character checks (useful if Arena Net's GW2 API breaks again)
required_level = 80
#######################################
#######################################
[ipc settings]
# What port the bot listens on for IPC requests
ipc_port = 10137
# Group that is polled and sent via IPC regularly
poll_group_names = ['Active Raidlead']
#######################################
#######################################
[reset roster]
# Tuple of pattern and clean label.
# Pattern for the toplevel and sub channels. Note that a "Teamspeak pattern" is used,
# aka a substring and should therefore be unique, see:
# https://sk-gameservers.de/ts3-server-query-befehle-alle#channelfind
# the clean label is what will be used to (re)set the label when a command needs to do so.
# Variables you can use that will be replaced:
# $DATE
reset_top_level_channel = ('reset roster','Reset Roster') # pattern will find "Reset Roster - 13.09.19" for example
reset_rgl_channel = ('red bl','Red BL:')
reset_bgl_channel = ('blue bl','Blue BL:')
reset_ggl_channel = ('green bl','Green BL:')
reset_ebg_channel = ('ebg','EBG:')
#######################################
#######################################
[guilds]
guilds_parent_channel = Guilds
guild_sub_channels = ('Lobby', 'Raids')
guild_contact_channel_group = Gilden Ansprechpartner
minimum_talk_power = 50
maximum_talk_power = 90
minimum_sort_order = 100
guild_sort_id=1100
#######################################
#######################################
[DEBUGGING]
#Set to yes for more debug information
DEBUG=False
#######################################