2022 visit: it’s fun seeing where I started, now JavaScript is my best friend.
Hey there!
I’m trying to create a multi shout-out command, so it goes like this:
$(eval
var q="$(query)".split(" ");
var i;
var r=[];
for(i=0;i<q.length;i++){
r[r.length]=$(twitch q[i] "Give {{displayName}} a follow boys and girls! {{url}} They played {{game}}.");
}
if(q[1]){
r=r.join(" ____________________________________________ ");
}
r;
)
The idea is to be able to do regular shout-outs (!so streamer), and when needed to combine multiple shout-outs in one command (!so streamer1 streamer2 …). The underscores are covering the regular width of the Twitch chat so it adds something like a line break before shouting out the second streamer to make it clearer for the chat, they appear only if there’s more than one streamer that is shouted out.
But it’s not working, I think it’s because $(twitch) is not working with variables, I mean other than $(touser) or a name, so I’m seeking for confirmation of this, and to ask if there’s a workaround.
Thanks in advance for the help!