Will this work..?

Asked Sep 16, 2020·5 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

$(twitch johnwickhitman "{{display name}} currently has {{viewers}} viewers, {{views}} views, and {{followers}} followers. JohnWickHitman is currently playing {{game}}. Enjoy the Stream!!")

New to this type of "coding" string stuff. Will this work on a bot timer??

5 replies

Yes this should work in a timer on nightbot. I don’t see any issues with the formatting or anything.

Must be doing it incorrectly then, as I put this code in the box, and when bot runs it prints out exactly what you see in that post. It didn't fetch the numbers, or work at all....

So, does this go in the top box, or in the lower box that is like "line" style??

I just copied/pasted what you wrote, and it seems to work as expected.

DrS9LMC5JC.png

On mine it didn't fetch the "numbers" of each item.....just printed what was typed....maybe my bot is broke...hehe!

Thanks!

OMG, alright, I was really tired yesterday and I didn't test it properly, sorry, that's on me.

So basically, it's not working because you use the wrong quotation marks... Also, it's not display name, but displayName. So here's the fix:

$(twitch johnwickhitman "{{displayName}} currently has {{viewers}} viewers, {{views}} views, and {{followers}} followers. JohnWickHitman is currently playing {{game}}. Enjoy the Stream!!")

Didn't find your answer? The community is on Discord.

Ask on Discord