Need help expanding command beyond 400 characters

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?

Hey @smexykoen!

Use an unlisted pastebin that doesn’t expire in it’s raw form with your code in it:

input.includes("text1")?"response1": input.includes("text2")?"response2":"response3 when input didn't include any set values"

So pastebin.com/raw/XXXXXXXX, XXXXXXXX being the paste ID:

$(eval var input = decodeURIComponent("$(querystring)").toLowerCase(); $(urlfetch json https://pastebin.com/raw/XXXXXXXXX))
2 Likes

@Emily hahaha you can’t be serious! it works! Never thought this would be this simple haha. thank you so much!

1 Like

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