Nightbot doesnt understand all people in my json is lowercase

Hey guys and Girls,
Im trying to get this to string to work but i need it to turn all user requests into lowercase but cant figure out how, is there a way to do that?

$(urlfetch https://path/to/watchtime.php?action=get&channel=$(channel)&user=$(user)&time=$(time))

Hey @speedihb2k15!

This question is just about Javascript, you’ll need to use $(eval) to execute code, so this gives you the following command:

$(eval u='$(user)'.toLowerCase(); `$(urlfetch https://LINK.php?action=get&channel=$(channel)&user=${u}&time=$(time))`)
1 Like

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