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

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?

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

1 Like

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