Hi, I have a nightbot command called “!echo”, basically he repeats a message, the command is:
!echo $(query)
I would like to know if i can prevent the nightbot from giving his streamelements points through:
!echo !givepoints
I tried this:
$(eval ((String(decodeURIComponent(
$(query)
)).trim().toLowerCase().replace(/\s+/g, ‘’) == “!givepoints”) ? “Good try! LUL” : decodeURIComponent($(query)
)))
The problem is that this path only works if the viewer writes just “!givepoints” without anything after that, like the “@user” or the amount of points
I could just stop the nightbot from earning points in the streamelements, but I want to do something funny, is there a way for this to work?