mirror of https://github.com/icedream/ts3bot.git
Prevent running the "enqueue" command without a URL.
parent
8964db5afa
commit
e4f3e4f2c2
5
app.iced
5
app.iced
|
@ -211,6 +211,11 @@ ts3clientService.on "started", (ts3proc) =>
|
|||
ts3query.sendtextmessage args.targetmode, invoker.id, "Going to the next playlist entry."
|
||||
when "enqueue", "add", "append"
|
||||
inputBB = paramline
|
||||
|
||||
if inputBB.length <= 0
|
||||
ts3query.sendtextmessage args.targetmode, invoker.id, "[B]#{name}[/B] takes a URL as a parameter that should be appended to the playlist."
|
||||
return
|
||||
|
||||
input = removeBB paramline
|
||||
|
||||
# only allow playback from file if it's a preconfigured alias
|
||||
|
|
Loading…
Reference in New Issue