8ball command returning a response is not a function.

Asked Jul 26, 2025·4 replies·Last activity 1 year 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 have an 8ball command with the following command that I simply modified from my initiative command to include the raw link to my 8ball list instead of my intinitive.

$(user) $(eval a=$(urlfetch json https://pastebin.com/raw/PKyCmJGG);a[Math.floor(Math.random()*a.length)])

Even though these commands only had the pastebin changed, I get the response:

[username] "uninstalls life" is not a function

(Replacing username with the one calling the command)

What am I doing wrong with this command?

For the record, this is my Initiative command:
$(user) $(eval a=$(urlfetch json https://pastebin.com/raw/Mb2pKAaK);a[Math.floor(Math.random()*a.length)])

4 replies

Your first command is running correctly for me on twitch – I don't see the "is not a function" part of the string. Is it possible you're running a stale version of your 8ball command?

It is entirely possible, I am not entirely certain how I can check for that. This is the first time I am trying to run the 8ball outside StreamElements (which lacks I need).

As the user gesticulate said, the command is correct. If you created your Pastebin and then edited its content, it’s likely cached. Create a new Pastebin with the final content and replace the URL.