Hello, I'm trying to set up a personalized greeting code for a friends channel but I'm having some difficulties. I'm trying to get the basic code working before I get it super personalized but I cant even get it working, I keep getting "Unexpected String". I copied the basic code off of a website that had a few obvious errors in the original code, so I fixed up what I could, but my knowledge in javascript is very limited, and google has failed me.
What I have is:
$(eval a=$"(user)" $urlfetch https://pastebin.com/raw/xxxx))
its supposed to read a pastebin file with the following (removing specific twitch usernames):
if (a == "UserOne") {"Everyone say hi to UserOne!";}
else if (a == "UserTwo") {"Welcome! Everyone say hi to UserTwo";}
else {"Hello welcome to the stream!"}