I’d suggest using an alias command, I believe Nightbot calls the $(urlfetch) before resolving the $(eval), so something like this should solve your problem:
Of course!
I barely checked your code, but there’s an important mistake here: names.map(n => $(twitch ${n} "{{url}} - [{{game}}]"))
Can you see it?
Here’s the fix, I highlighted the important parts: names.map(n => `$(twitch ${n} "{{url}} - [{{game}}]")`)
But even that isn’t enough, and that’s because the $(twitch) variable is resolved before the .map() is called, I wonder if the following would fix it completely:
Damn, so close! I’m not sure I have a solution to offer anymore…
I made a similar command before, but I don’t have the game listed, only the URL, which can be done simply by concatenating twitch.tv/ and the username, so I don’t rely on the $(twitch) variable.
I wonder if I faced the same problem as you and forgot, since it’s been years at this point.