-
Notifications
You must be signed in to change notification settings - Fork 8
/
start.sh
209 lines (152 loc) · 3.46 KB
/
start.sh
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
#!/bin/bash
# -----------------------------------------
# ARGUMENTS
# Please fill out following arguments. There are required ones and optional ones.
# If you do not want to fill an optional argument just leave it blank after the equal-sign ("=").
# In case you need specific argument explaination visit https://github.com/lbormann/darts-caller#arguments
# REQUIRED:
# -U
autodarts_email=
# -P
autodarts_password=
# -B
autodarts_board_id=
# -M
media_path=
# OPTIONAL:
# -MS
media_path_shared=
# -V
caller_volume=
# -C
caller=
# -R
random_caller=
# -RL
random_caller_language=
# -RG
random_caller_gender=
# -CCP
call_current_player=
# -CBA
call_bot_actions=
# -E
call_every_dart=
# -PCC
possible_checkout_call=
# -PCCYO
possible_checkout_call_yourself_only=
# -A
ambient_sounds=
# -AAC
ambient_sounds_after_calls=
# -DL
downloads=
# -DLLA
downloads_language=
# -DLN
downloads_name=
# -ROVP
remove_old_voice_packs=
# -LPB
local_playback=
# -WEBDH
web_caller_disable_https=
# -HP
host_port=
# -DEB
debug=
# -MIF
mixer_frequency=
# -MIS
mixer_size=
# -MIC
mixer_channels=
# -MIB
mixer_buffersize=
# Only change if it says 'python3 is not a recognized command or something like that - you could use python instead'
py="python3"
# END
# DO NOT CHANGE ANYTHING BY THIS LINE!
# ------------------------------------------
args="-U $autodarts_email -P $autodarts_password -B $autodarts_board_id -M $media_path"
if [ -n "$media_path_shared" ]; then
args="$args -MS $media_path_shared"
fi
if [ -n "$caller_volume" ]; then
args="$args -V $caller_volume"
fi
if [ -n "$caller" ]; then
args="$args -C $caller"
fi
if [ -n "$random_caller" ]; then
args="$args -R $random_caller"
fi
if [ -n "$random_caller_language" ]; then
args="$args -RL $random_caller_language"
fi
if [ -n "$random_caller_gender" ]; then
args="$args -RG $random_caller_gender"
fi
if [ -n "$call_current_player" ]; then
args="$args -CCP $call_current_player"
fi
if [ -n "$call_bot_actions" ]; then
args="$args -CBA $call_bot_actions"
fi
if [ -n "$call_every_dart" ]; then
args="$args -E $call_every_dart"
fi
if [ -n "$possible_checkout_call" ]; then
args="$args -PCC $possible_checkout_call"
fi
if [ -n "$possible_checkout_call_yourself_only" ]; then
args="$args -PCCYO $possible_checkout_call_yourself_only"
fi
if [ -n "$ambient_sounds" ]; then
args="$args -A $ambient_sounds"
fi
if [ -n "$ambient_sounds_after_calls" ]; then
args="$args -AAC $ambient_sounds_after_calls"
fi
if [ -n "$downloads" ]; then
args="$args -DL $downloads"
fi
if [ -n "$downloads_language" ]; then
args="$args -DLLA $downloads_language"
fi
if [ -n "$downloads_name" ]; then
args="$args -DLN $downloads_name"
fi
if [ -n "$remove_old_voice_packs" ]; then
args="$args -ROVP $remove_old_voice_packs"
fi
#if [ -n "$background_audio_volume" ]; then
# args="$args -BAV $background_audio_volume"
#fi
if [ -n "$local_playback" ]; then
args="$args -LPB $local_playback"
fi
if [ -n "$web_caller_disable_https" ]; then
args="$args -WEBDH $web_caller_disable_https"
fi
if [ -n "$host_port" ]; then
args="$args -HP $host_port"
fi
if [ -n "$debug" ]; then
args="$args -DEB $debug"
fi
if [ -n "$mixer_frequency" ]; then
args="$args -MIF $mixer_frequency"
fi
if [ -n "$mixer_size" ]; then
args="$args -MIS $mixer_size"
fi
if [ -n "$mixer_channels" ]; then
args="$args -MIC $mixer_channels"
fi
if [ -n "$mixer_buffersize" ]; then
args="$args -MIB $mixer_buffersize"
fi
echo "Arguments: $args"
"$py" darts-caller.py $args