Hey, I'm trying to ease things up for mods, trying to make a !score command that returns the streamer's win/loss count so far, should return Ex: Today's Record 4 W - 2 L, what I want to do is make it so that !win adds 1 point to the wins and !loss adds 1 point to the losses.
What I tried so far (which I suppose is not how you do this) for the win count and didn't work:
javascript!commands add !win -ul=moderator -a=!commands edit !score $(eval var W = `$(win)`; var L = `$(lose)`; `Today's Record ${W+1} W - ${L} L`)
and this for the lose count:
javascript!commands add !loss -ul=moderator -a=!commands edit !score $(eval var W = `$(win)`; var L = `$(lose)`; `Today's Record ${W} W - ${L+1} L`)
when I use those !score just returns: Today's Record [invalid variable]1 W - [invalid variable] L and Today's Record [invalid variable] W - [invalid variable]1 L