Punctuation after $song
Added by Paul Aburn over 1 year ago
Is it possible to add punctuation immediately after $song?
eg if I have:
/say palaran is listening to $song
The OCD in me wants to add a fullstop immediately after $song, so that when it returns the value it then completes the sentence. However, if I do so it then fails to return the value for $song, presumably because it is treating it as '$song.' which it does not recognise.
I notice that $1 for nick, for instance, does not suffer from same issue.
TIA
Replies (2)
RE: Punctuation after $song - Added by Paul Janson over 1 year ago
If you want to attach a '.' (period) to the string returned by $song you can use $+ to attach it:
//say palaran is listening to $song $+ .
Using /say works only in the window having the keyboard cursor, so your script can instead use:
msg #channelname
RE: Punctuation after $song - Added by Paul Aburn over 1 year ago
Hi thanks for that. The OCD in me can now punctuate correctly. :)