Issues making multiple random text segments in a sentence for a command.

Asked Nov 24, 2020·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I'm trying to make my command pull multiple random strings of text together to form differing sentences.

!addcom !themoves /me $(eval a=$(urlfetch json https://pastebin.com/raw/______);a[Math.floor(Math.random()*a.length)];b=$(touser);c=$(urlfetch json https://pastebin.com/raw/______);c[Math.floor(Math.random()*c.length)])

However it just returns the /me and (touser) section. Any advice?

1 reply

Can you post your command between backticks, so the forum formatting doesn't replace characters in your command: \`` command ``