I have set up a command to look for certain words in a query and give a response accordingly. However I would like to setup more keywords and responses in this command. but the character limit won’t allow it. I have an example of the code I’m using down below:
$(eval var input = decodeURIComponent("$(querystring)").toLowerCase(); input.includes("text1")?"response1": input.includes("text2")?"response2":"response3 when input didn't include any set values" )
I have read about the possibility of using $(urlfetch json url)
what should expand the 400 character limit, however I have no clue how to implement this. I tried putting the code in a file on a website and then fetching it, but then it doesn’t output anything at all… anyone has a clue?