I’m trying to make a command that spits out a random pun from a pastebin file as that’s what the other topics like this suggest so I’ve been reading through them to try and figure out what is wrong with mine. I’ve got the command to this:
!commands add !commands add !pun -cd=5 $(eval var pun = “$(urlfetch https://pastebin.com/raw/6q2c0yLC) “.split(”,”); pun[Math.floor(Math.random() * (pun.length - 1))];). (The full stop on the end isn’t there, im just hoping it will stop it from turning into an emoji.)
But whenever I use it, it says its got a 400 character limit so I’m guessing it’s trying to paste the whole file and I can’t find a way to fix it. I’m assuming others have found a way due to other people having success with it but I can’t find a way to work on mine so any help is appreciated.