Long command or remote command?

how can I add a command over 200 characters or pick from a remote list? not enough room on the site and not enough room to add command from chat.

If your adding the command via nightbot.tv you should be able to make the command up to 500 characters long but, I assuming your using the youtube platform it can only output responses up to 200 characters long. As for picking from a remote list there are a few different ways I’d recommend urlfetching a pastebin link.

well over 500 characters unfortunately. havent been able to find anything to set it up via pastebin or others. and can I stack my list to make editing easier. ex:

original:
$(user) $(eval a=[“Gator Rush Introduction”, “Gold Rush”, “Lake Michigan“, “Glacier Park SquadX Event”, “Glacier Park Tiger Tonic Event”, “Lake Michigan by Night”, “Gator Rush Main Event”, “Glacier Park”, “Bayou”, “Lake Michigan Endurfix Event”];a[Math.floor(Math.random() * a.length)])

pastebin:
$(user) $(eval a=[
“Gator Rush Introduction”,
“Gold Rush”,
“Lake Michigan“,
“Glacier Park SquadX Event”,
“Glacier Park Tiger Tonic Event”,
“Lake Michigan by Night”,
“Gator Rush Main Event”,
“Glacier Park”, “Bayou”,
“Lake Michigan Endurfix Event”

];a[Math.floor(Math.random() * a.length)])

Would this function broken up like this?

Just take this part and put it into a pastebin then do this:

$(user) $(eval $(urlfetch json https://pastebin.com/raw/xxxxxx))

Make sure to include the raw pastebin link otherwise it won’t read properly.
And the json in the urlfetch is necessary. Hope this helped :slight_smile: and you can format the pastebin with as many new lines as you need and they just get passed over in the eval

Ex. Hi there

Reads the same as

Hi
there

Hmmm…

url is a URL that returns a body in plain text with less than 400 characters in its response

Raw link seems to be the same as well

The urlfetch can return more than 400 characters in a response if you use “json” in it so it knows it’s part of an eval. Just makes making long eval commands possible.

says the response needs to be JSON type. I dont see a setting for that

Can you show me your pastebin link?

https://pastebin.com/raw/KV7yXtBG

Don’t include the “$(user) $(eval” at the beginning and get rid of the last “)”
Nightbot can’t tell variables that are fetched through a urlfetch.

Like this?

https://pastebin.com/raw/KV7yXtBG

$(urlfetch json https://pastebin.com/raw/KV7yXtBG)

Yes, the command will look like this on the nightbot page:

$(user) $(eval $(urlfetch json https://pastebin.com/raw/KV7yXtBG))

This should work the way you intend it to.

thank you, makes sense… but no luck yet:

$(user) $(eval $(urlfetch json https://pastebin.com/raw/KV7yXtBG))

Ok in your pastebin I just noticed it seems you have used “ instead of " very simple mistake but it causes it to not read properly I suggest replacing the “ with ` .
Like this

`Message`, `Message2`, `Message3`

Not just single quotes but specifically “ `

replace with all single quotes?

is that the Tilde? left of the 1?

Tilde is “~” but, yes I believe the keyboard shortcut is next to the 1

gotta be a simple mistake somewhere I’m missing

$(user) $(eval $(urlfetch json https://pastebin.com/raw/KV7yXtBG))

https://pastebin.com/raw/KV7yXtBG

From my testing of the command it’s working fine are you still experiencing issues?