So I got commands for a bot to pick a random single word from a single pastebin.
!commands add !warrior $(eval var warrior= "$(urlfetch jsonhttps://pastebin.com/raw/XUB7dJe1) ".split(","); warrior[Math.floor(Math.random() * (warrior.length - 1))];)
But now I want a command that picks one result each from 5 different pastebins (To pick a full team for a game. One pick from the list for each class.). Sadly just pasting my commands behind each other to access each individual pastebin is longer than the 500 length limit for nightbot.
Does anyone have any idea how to fix/get around this?
My current version is this (this is sadly above the 500 length limit):
!commands add !team warrior = $(eval var warrior= "$(urlfetch jsonhttps://pastebin.com/raw/XUB7dJe1) ".split(","); warrior[Math.floor(Math.random() * (warrior.length - 1))];)mage = $(eval var mage= "$(urlfetch jsonhttps://pastebin.com/raw/Ad44zFbu) ".split(","); mage[Math.floor(Math.random() * (mage.length - 1))];)hunter = $(eval var hunter= "$(urlfetch jsonhttps://pastebin.com/raw/wpiNNqn2) ".split(","); hunter[Math.floor(Math.random() * (hunter.length - 1))];)guardian = $(eval var guardian= "$(urlfetch jsonhttps://pastebin.com/raw/EKNtmtQ5) ".split(","); guardian[Math.floor(Math.random() * (guardian.length - 1))];)assassin = $(eval var assassin= "$(urlfetch jsonhttps://pastebin.com/raw/rQhHvGPx) ".split(","); assassin[Math.floor(Math.random() * (assassin.length - 1))];)