mirror of https://github.com/icedream/ts3bot.git
Fix response messages for volume and adding to playlist.
parent
2dd16830ec
commit
1b57bd36ce
4
app.iced
4
app.iced
|
@ -252,7 +252,7 @@ ts3clientService.on "started", (ts3proc) =>
|
||||||
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 that media. Maybe check the URL/sound name you provided?"
|
||||||
return
|
return
|
||||||
|
|
||||||
ts3query.sendtextmessage args.targetmode, invoker.id, "Now playing [URL=#{input}]#{info.title}[/URL]."
|
ts3query.sendtextmessage args.targetmode, invoker.id, "Added [URL=#{input}]#{info.title}[/URL] to the playlist."
|
||||||
when "stop"
|
when "stop"
|
||||||
await vlc.status.stop defer(err)
|
await vlc.status.stop defer(err)
|
||||||
|
|
||||||
|
@ -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 511 (200%) to set the volume. 100% is 127."
|
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."
|
||||||
return
|
return
|
||||||
|
|
||||||
await vlc.status.volume paramline, defer(err)
|
await vlc.status.volume paramline, defer(err)
|
||||||
|
|
Loading…
Reference in New Issue