· 6 years ago · Sep 11, 2019, 06:14 PM
1#! IMPORTANT !
2#All config tables here starting with 'bot.*' will only be used as default values for each bot.
3#To make bot-instance specific changes go to the 'Bots' folder (configs.bots_path) and set your configuration values in the desired bot config.
4[bot]
5#This field will be automatically set when you call '!bot setup'.
6#The bot will use the specified group to set/update the required permissions and add himself into it.
7#You can set this field manually if you already have a preexisting group the bot should add himself to.
8bot_group_id = 0
9#Tries to fetch a cover image when playing.
10generate_status_avatar = true
11#The language the bot should use to respond to users. (Make sure you have added the required language packs)
12language = "en"
13#Defines how the bot tries to match your !commands. Possible types:
14# - exact : Only when the command matches exactly.
15# - substring : The shortest command starting with the given prefix.
16# - ic3 : 'interleaved continuous character chain' A fuzzy algorithm similar to hamming distance but preferring characters at the start.
17command_matcher = "ic3"
18
19[bot.connect]
20#Default channel when connecting. Use a channel path or '/<id>'.
21#Examples: 'Home/Lobby', '/5', 'Home/Afk \/ Not Here'.
22channel = "[Operátorok]/Dzsonó"
23#The client badges. You can set a comma seperated string with max three GUID's. Here is a list: http://yat.qa/ressourcen/abzeichen-badges/
24badges = "b9c7d6ad-5b99-40fb-988c-1d02ab6cc130"
25#Client nickname when connecting.
26name = "dzsonobot™"
27
28#The server password. Leave empty for none.
29[bot.connect.server_password]
30pw = ""
31hashed = false
32autohash = false
33
34#The default channel password. Leave empty for none.
35[bot.connect.channel_password]
36pw = ""
37hashed = false
38autohash = false
39
40#Overrides the displayed version for the ts3 client. Leave empty for default.
41[bot.connect.client_version]
42build = ""
43platform = " "
44sign = ""
45
46[bot.connect.identity]
47#||| DO NOT MAKE THIS KEY PUBLIC ||| The client identity. You can import a teamspeak3 identity here too.
48key = ""
49#The client identity offset determining the security level.
50offset = 0
51#The client identity security level which should be calculated before connecting
52#or -1 to generate on demand when connecting.
53level = -1
54
55[bot.audio]
56#The maximum volume a normal user can request. Only user with the 'ts3ab.admin.volume' permission can request higher volumes.
57max_user_volume = 50.0
58#Specifies the bitrate (in kbps) for sending audio.
59#Values between 8 and 98 are supported, more or less can work but without guarantees.
60#Reference values: 16 - poor (~3KiB/s), 24 - okay (~4KiB/s), 32 - good (~5KiB/s), 48 - very good (~7KiB/s), 64 - not noticeably better than 48, stop wasting your bandwith, go back (~9KiB/s)
61bitrate = 98
62#How the bot should play music. Options are:
63# - whisper : Whispers to the channel where the request came from. Other users can join with '!subscribe'.
64# - voice : Sends via normal voice to the current channel. '!subscribe' will not work in this mode.
65# - !... : A custom command. Use '!xecute (!a) (!b)' for example to execute multiple commands.
66send_mode = "voice"
67
68#When a new song starts the volume will be trimmed to between min and max.
69#When the current volume already is between min and max nothing will happen.
70#To completely or partially disable this feature, set min to 0 and/or max to 100.
71[bot.audio.volume]
72default = 5.0
73min = 1.0
74max = 50.0
75
76[bot.playlists]
77#Path to the folder where playlist files will be saved.
78path = "Playlists"
79
80[bot.history]
81#Enable or disable history features completely to save resources.
82enabled = true
83#Whether or not deleted history ids should be filled up with new songs.
84fill_deleted_ids = true
85
86[bot.events]
87#Called when the bot is connected.
88onconnect = ""
89#Called when the bot gets disconnected.
90ondisconnect = ""
91#Called when the bot does not play anything for a certain amount of time.
92onidle = ""
93#Specifies how long the bot has to be idle until the 'onidle' event gets fired.
94#You can specify the time in the ISO-8601 format with qutotation marks "PT30S" or like: 15s, 1h, 3m30s
95idletime = "PT5M"
96
97#You can create new subtables matching the bot config name to configure meta-settings for each bot.
98#Current layout: { run:bool }
99[bots]
100alap = { run = true }
101
102[configs]
103#Path to a folder where the configuration files for each bot template will be stored.
104bots_path = "Bots"
105
106[db]
107#The path to the database file for persistent data.
108path = "ts3audiobot.db"
109
110[factories]
111
112#The default path to look for local resources.
113[factories.media]
114path = "zene"
115
116[tools]
117
118#Path to the youtube-dl binary or local git repository.
119[tools.youtube-dl]
120path = "youtube-dl/youtube-dl"
121
122#The path to ffmpeg.
123[tools.ffmpeg]
124path = "ffmpeg"
125
126[rights]
127#Path to the permission file. The file will be generated if it doesn't exist.
128path = "rights.toml"
129
130[plugins]
131#The path to the plugins folder.
132path = "Plugins"
133#Write to .status files to store a plugin enable status persistently and restart them on launch.
134write_status_files = false
135
136[plugins.load]
137
138[web]
139#An array of all urls the web api should be possible to be accessed with.
140hosts = ["localhost", "127.0.0.1"]
141#The port for the web server.
142port = 10215
143
144[web.api]
145#If you want to enable the web api.
146enabled = true
147
148[web.interface]
149#If you want to enable the webinterface.
150enabled = true
151#The webinterface folder to host. Leave empty to let the bot look for default locations.
152path = ""