I have a very complex system that I want to set up. I have a !slots command (through streamelements) that I want nightbot to be able to recognize if the user wins, and it automatically trigger a command to !givepoints (winning user) 500. The streamelements output of the !slots command looks like this when won: (user), you played slots and got | | | | The winning emote is
The first three emotes are with the ${random.emote} variable in streamelements. I would like nightbot to be able to recognize if they are matching and if they are, activate a !givepoints to give the winning user 500 points.
I understand it's very complicated and likely not possible due to it crossing between the two bots and using a recognition feature on nightbot that I'm not sure exists. But I am open to other methods that I could do this with.
I can try to redo the !slots command through nightbot, which I had previously with this:
$(user), you played slots and got $(eval a=$(urlfetch json [link)](link)%60).split(,);a[Math.floor(Math.random()*(a.length-1))]) | $(eval a=$(urlfetch json [link)](link)%60).split(,);a[Math.floor(Math.random()*(a.length-1))]) | $(eval a=$(urlfetch json [link)](link)%60).split(,);a[Math.floor(Math.random()*(a.length-1))])
But, this would often result in an "Error Connecting To WebEval Service" that I could not figure out how to fix.
If it is easier/better, I could I could do it entirely through Nightbot, meaning it would be more like a slots game as all three emotes would need to match for the user to win (instead of just matching 1) but I would need to know how to fix the "Error Connecting To WebEval Service"


