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.
Long command or remote command?
30 replies
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?
Rapid Dolphin said:
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)]
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 🙂 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
$(user) $(eval $(urlfetch json https://pastebin.com/raw/KV7yXtBG))
Make sure the link is correct and there is nothing after it.
Though it should be working I tested it out on my nightbot on twitch and it works fine. What do you mean when you say it returns no response like nightbot literally returns nothing? If so make sure the command name is spelled properly and your calling it correctly.
Didn't find your answer? The community is on Discord.
Ask on Discord