· 6 years ago · Sep 18, 2019, 07:54 PM
1
2#! IMPORTANT !
3#All config tables here starting with 'bot.*' will only be used as default values for each bot.
4#To make bot-instance specific changes go to the 'Bots' folder (configs.bots_path) and set your configuration values in the desired bot config.
5[bot]
6#This field will be automatically set when you call '!bot setup'.
7#The bot will use the specified group to set/update the required permissions and add himself into it.
8#You can set this field manually if you already have a preexisting group the bot should add himself to.
9bot_group_id = 0
10#Tries to fetch a cover image when playing.
11generate_status_avatar = true
12#Sets the description of the bot to the current song title.
13set_status_description = true
14#The language the bot should use to respond to users. (Make sure you have added the required language packs)
15language = "en"
16#Starts the instance when the TS3AudioBot is launched.
17run = false
18
19[bot.commands]
20#Defines how the bot tries to match your !commands. Possible types:
21# - exact : Only when the command matches exactly.
22# - substring : The shortest command starting with the given prefix.
23# - ic3 : 'interleaved continuous character chain' A fuzzy algorithm similar to hamming distance but preferring characters at the start.
24matcher = "ic3"
25#Defines how the bot handles messages which are too long for a single ts3 message. Options are:
26# - split : The message will be split up into multiple messages.
27# - drop : Does not send the message.
28long_message = "Split"
29#Limits the split count for long messages. When for example set to 1 the message will simply be trimmed to one message.
30long_message_split_limit = 1
31#Enables colors and text highlights for respones.
32color = true
33#Limits the maximum command complexity to prevent endless loops.
34command_complexity = 64
35
36[bot.commands.alias]
37
38[bot.connect]
39#The server password. Leave empty for none.
40server_password = { pw = "", hashed = false, autohash = false }
41#The default channel password. Leave empty for none.
42channel_password = { pw = "", hashed = false, autohash = false }
43#Overrides the displayed version for the ts3 client. Leave empty for default.
44client_version = { build = "3.3.2 [Build: 1566767614]", platform = "Linux", sign = "UhiFNnz8npgT22qkLXlZJnX3T2n+a8usv/0cTh+tgybrgsFd2WIuI3eabWCibPeU+AYeHLaeYR+x+pF4GX/NDw==" }
45#The address, ip or nickname (and port; default: 9987) of the TeamSpeak3 server
46address = "127.0.0.1:9987"
47#Default channel when connecting. Use a channel path or "/<id>".
48#Examples: "Home/Lobby", "/5", "Home/Afk \\/ Not Here".
49channel = ""
50#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/
51badges = "b9c7d6ad-5b99-40fb-988c-1d02ab6cc130"
52#Client nickname when connecting.
53name = "MusicBot"
54
55[bot.connect.identity]
56#||| DO NOT MAKE THIS KEY PUBLIC ||| The client identity. You can import a teamspeak3 identity here too.
57key = ""
58#The client identity offset determining the security level.
59offset = 0
60#The client identity security level which should be calculated before connecting
61#or -1 to generate on demand when connecting.
62level = -1
63
64[bot.reconnect]
65ontimeout = ["1s", "2s", "5s", "10s", "30s", "1m", "5m", "repeat last"]
66onkick = []
67onban = []
68onerror = ["30s", "repeat last"]
69onshutdown = ["5m"]
70
71[bot.audio]
72#When a new song starts the volume will be trimmed to between min and max.
73#When the current volume already is between min and max nothing will happen.
74#To completely or partially disable this feature, set min to 0 and/or max to 100.
75volume = { default = 50.0, min = 25.0, max = 75.0 }
76#The maximum volume a normal user can request. Only user with the 'ts3ab.admin.volume' permission can request higher volumes.
77max_user_volume = 100.0
78#Specifies the bitrate (in kbps) for sending audio.
79#Values between 8 and 98 are supported, more or less can work but without guarantees.
80#Reference values: 16 - very poor (~3KiB/s), 24 - poor (~4KiB/s), 32 - okay (~5KiB/s), 48 - good (~7KiB/s), 64 - very good (~9KiB/s), 96 - deluxe (~13KiB/s)
81bitrate = 48
82#How the bot should play music. Options are:
83# - whisper : Whispers to the channel where the request came from. Other users can join with '!subscribe'.
84# - voice : Sends via normal voice to the current channel. '!subscribe' will not work in this mode.
85# - !... : A custom command. Use '!xecute (!a) (!b)' for example to execute multiple commands.
86send_mode = "voice"
87
88[bot.playlists]
89#Path to the folder where playlist files will be saved.
90path = "playlists"
91# - Bot : Playlists per bot.
92# - Global : Playlists across all.
93# (- Server : Not Implemented)
94share = "Bot"
95max_item_count = 1000
96
97[bot.history]
98#Enable or disable history features completely to save resources.
99enabled = true
100#Whether or not deleted history ids should be filled up with new songs.
101fill_deleted_ids = true
102
103[bot.events]
104#Called when the bot is connected.
105onconnect = ""
106#Called when the bot gets disconnected.
107ondisconnect = ""
108#Called when the bot does not play anything for a certain amount of time.
109onidle = ""
110#Specifies how long the bot has to be idle until the 'onidle' event gets fired.
111#You can specify the time in the ISO-8601 format with quotation marks "PT30S" or like: 15s, 1h, 3m30s
112idletime = "PT5M"
113
114[configs]
115#Path to a folder where the configuration files for each bot template will be stored.
116bots_path = "bots"
117
118[db]
119#The path to the database file for persistent data.
120path = "ts3audiobot.db"
121
122[factories]
123#The default path to look for local resources.
124media = { path = "" }
125
126[tools]
127#Path to the youtube-dl binary or local git repository.
128youtube-dl = { path = "youtube-dl" }
129
130#The path to ffmpeg.
131[tools.ffmpeg]
132path = "ffmpeg"
133
134[rights]
135#Path to the permission file. The file will be generated if it doesn't exist.
136path = "rights.toml"
137
138[plugins]
139#The path to the plugins folder.
140path = "plugins"
141#Write to .status files to store a plugin enable status persistently and restart them on launch.
142write_status_files = false
143
144[plugins.load]
145
146[web]
147#An array of all urls the web api should be possible to be accessed with.
148hosts = ["*"]
149#The port for the web server.
150port = 58913
151
152[web.api]
153#If you want to enable the web api.
154enabled = true
155#Limits the maximum command complexity to prevent endless loops.
156command_complexity = 64
157#See: bot.commands.matcher
158matcher = "exact"
159
160[web.interface]
161#If you want to enable the webinterface.
162enabled = true
163#The webinterface folder to host. Leave empty to let the bot look for default locations.
164path = ""