Shoutout Command Error: internal server error! on Game name

Greetings - I was working on tweaking a shoutout command for a channel I help mod, but whenever I try to add a “last playing “game”” section, I get Error: internal server error! I have tried a couple different ways of doing this, as a lot of sources that came up were years old. The rest of the command works just fine, just not the game portion. I am currently using $(twitch game $(touser)) and have included the full command down below to add the command, as well as an example of what returned when I tried to use it.

!commands add !superso -ul=mod $(twitch "Go check out $(touser) at https://twitch.tv/$(eval user = "$(touser) and be a fantastic fellow by showing them some love! They were last playing $(twitch game $(touser))!".replace(/^\@/gi,''); user.toString();) - $(touser) is ") $(urlfetch https://betterso.netlify.app/.netlify/functions/so?username=$(query))
Go check out Sugar_LeBlanc at https://twitch.tv/Sugar_LeBlanc and be a fantastic fellow by showing them some love! They were last playing **Error: internal server error!** - Sugar_LeBlanc is Your coffee addicted, dimension hopping, gamer were-rabbit!!

Hey @dashuto_theraven!

You get this issue because you’re nesting Nightbot’s variables too much, you actually just need one $(twitch) variable, no need for the $(eval) variable, please read the documentation:

!addcom !superso -ul=mod $(twitch $(touser) "Go check out {{displayName}} at {{url}} and be a fantastic fellow by showing them some love! They were last playing {{game}} — {{dispayName}} is") $(urlfetch https://betterso.netlify.app/.netlify/functions/so?username=$(touser))

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.