string iprovements

develop
avail 2015-10-21 16:50:36 +02:00
parent 1b57bd36ce
commit a2c4406f09
1 changed files with 6 additions and 6 deletions

View File

@ -195,7 +195,7 @@ ts3clientService.on "started", (ts3proc) =>
if err if err
vlc.status.empty() vlc.status.empty()
log.warn "VLC API returned an error when trying to play", err log.warn "VLC API returned an error when trying to play", err
ts3query.sendtextmessage args.targetmode, invoker.id, "Something seems to be wrong with that media. Maybe check the URL/sound name you provided?" ts3query.sendtextmessage args.targetmode, invoker.id, "Something seems to be wrong with the specified media. Try checking the URL/path you provided?"
return return
ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]." ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]."
@ -204,15 +204,15 @@ ts3clientService.on "started", (ts3proc) =>
if err if err
vlc.status.empty() vlc.status.empty()
log.warn "VLC API returned an error when trying to skip current song", err log.warn "VLC API returned an error when trying to skip current song", err
ts3query.sendtextmessage args.targetmode, invoker.id, "This unfortunately didn't work out, I'm sorry." ts3query.sendtextmessage args.targetmode, invoker.id, "This didn't work. Does the playlist have multiple songs?"
return return
ts3query.sendtextmessage args.targetmode, invoker.id, "Going to the next playlist entry." ts3query.sendtextmessage args.targetmode, invoker.id, "Playing next song in the playlist."
when "enqueue", "add", "append" when "enqueue", "add", "append"
inputBB = paramline inputBB = paramline
if inputBB.length <= 0 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." ts3query.sendtextmessage args.targetmode, invoker.id, "[B]#{name} *url*[/B] - adds the specified URL to the current playlist"
return return
input = removeBB paramline input = removeBB paramline
@ -249,7 +249,7 @@ ts3clientService.on "started", (ts3proc) =>
if err if err
vlc.status.empty() vlc.status.empty()
log.warn "VLC API returned an error when trying to play", err log.warn "VLC API returned an error when trying to play", err
ts3query.sendtextmessage args.targetmode, invoker.id, "Something seems to be wrong with that media. Maybe check the URL/sound name you provided?" ts3query.sendtextmessage args.targetmode, invoker.id, "Something seems to be wrong with the specified media. Try checking the URL/path you provided?"
return return
ts3query.sendtextmessage args.targetmode, invoker.id, "Added [URL=#{input}]#{info.title}[/URL] to the playlist." ts3query.sendtextmessage args.targetmode, invoker.id, "Added [URL=#{input}]#{info.title}[/URL] to the playlist."
@ -263,7 +263,7 @@ ts3clientService.on "started", (ts3proc) =>
vol = parseInt paramline vol = parseInt paramline
if paramline.trim().length <= 0 or vol > 511 or vol < 0 if paramline.trim().length <= 0 or vol > 511 or vol < 0
ts3query.sendtextmessage args.targetmode, invoker.id, "The [b]vol[/b] command takes a number between 0 (0%) and 1024 (400%) to set the volume. 100% is 256. Defaults to 128 (50%) on startup." ts3query.sendtextmessage args.targetmode, invoker.id, "[B]vol *number*[/B] - takes a number between 0 (0%) and 1024 (400%) to set the volume. 100% is 256. Defaults to 128 (50%) on startup."
return return
await vlc.status.volume paramline, defer(err) await vlc.status.volume paramline, defer(err)