I can’t seem to get a shoutout command that removes the @ to work currently. I was using;
$(twitch $(eval $(touser).replace(/@/g,"")) "Go check out {{displayName}}, last streaming {{game}}. Show them some love at {{url}}")
Which worked fine until tonight. Now every time I use it I get the following response;
Unknown Twitch Channel
I’ve tried a few other command suggestions which remove the @ from the forums such as;
$(twitch $(eval "$(touser)".replace("@", "")) "Please give a big shoutout to {{displayName}}. Be sure to follow them at {{url}}")
$(twitch $(eval decodeURIComponent(`$(querystring)`).split(` `)[0].replace(/@/g,``)||`$(user)`) "Please give a big shoutout to {{displayName}} and be sure to follow them at {{url}} They were last seen streaming {{game}}.")
$(twitch $(eval `$(query)`.charAt(0) === '@' ? `$(query)`.slice(1) : `$(query)`) "{{displayName}} -- {{url}} -- {{views}} views -- {{followers}} followers")
But all come up with the same error.
I tried some of the examples on https://docs.nightbot.tv/commands/variables/twitch which seemed to have issues as well with;
$(twitch night "{{displayName}} has {{followers}} followers")
Which displayed the same error even when I changed “night” to another user. So I’m assuming something may be borked with the $(twitch) command? It only started happening recently and the ability to remove the @ when shouting out makes life a lot easier on mobile, so any ideas would be welcomed. I know I could use;
$(urlfetch https://isso.pro/thelab/so.php?shout=$(touser))
And that would work, but I don’t like having to go to/rely on another’s site and the amount you can customize the message is limited going this route.