From a2c4406f09724c7d43ddfbdd93e1e8b67201dfc4 Mon Sep 17 00:00:00 2001 From: avail Date: Wed, 21 Oct 2015 16:50:36 +0200 Subject: [PATCH 1/2] string iprovements --- app.iced | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app.iced b/app.iced index 587fbef..8da20c4 100644 --- a/app.iced +++ b/app.iced @@ -195,7 +195,7 @@ ts3clientService.on "started", (ts3proc) => if err vlc.status.empty() 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 ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]." @@ -204,15 +204,15 @@ ts3clientService.on "started", (ts3proc) => if err vlc.status.empty() 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 - 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" 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." + ts3query.sendtextmessage args.targetmode, invoker.id, "[B]#{name} *url*[/B] - adds the specified URL to the current playlist" return input = removeBB paramline @@ -249,7 +249,7 @@ ts3clientService.on "started", (ts3proc) => if err vlc.status.empty() 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 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 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 await vlc.status.volume paramline, defer(err) From 1846e96806fe59fdaa3a4d02d46adaee74c4ebb8 Mon Sep 17 00:00:00 2001 From: icedream Date: Wed, 21 Oct 2015 16:56:16 +0200 Subject: [PATCH 2/2] Use <> instead of ** for marking parameters in the text. --- app.iced | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.iced b/app.iced index 8da20c4..2970b0c 100644 --- a/app.iced +++ b/app.iced @@ -212,7 +212,7 @@ ts3clientService.on "started", (ts3proc) => inputBB = paramline if inputBB.length <= 0 - ts3query.sendtextmessage args.targetmode, invoker.id, "[B]#{name} *url*[/B] - adds the specified URL to the current playlist" + ts3query.sendtextmessage args.targetmode, invoker.id, "[B]#{name} [/B] - Adds the specified URL to the current playlist" return input = removeBB paramline @@ -263,7 +263,7 @@ ts3clientService.on "started", (ts3proc) => vol = parseInt paramline if paramline.trim().length <= 0 or vol > 511 or vol < 0 - 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." + ts3query.sendtextmessage args.targetmode, invoker.id, "[B]vol [/B] - takes a number between 0 (0%) and 1024 (400%) to set the volume. 100% is 256. Defaults to 128 (50%) on startup." return await vlc.status.volume paramline, defer(err)