Having problems with an EVAL command

So, trying to make a command, and its giving me an error: Right-hand side of ‘instanceof’ is not an object

Can someone fix my code? And tell me why it isnt working, so I dont make that mistake again :slight_smile:

$(eval const responses = ['Hop onto the train and buy yourself a lorraine, Kappa', 'FoozGames Im bad, Im sorry. Foozgames 1/19/2017', 'I dont want to go to school, I'm being forced to go', 'Im not toxic Im just sharing my opinion, Fooz']; responses[Math.floor(Math.random() * responses.length)];)

I Used the 8ball command syntax to make this…

The single quote in I dont want to go to school, I'm being forced to go is ending the array value. You can either escape it by adding a slash \' or use different quotes around the value: "I'm" .

1 Like

Thanks! Didnt notice that. Ill go test it… And tested! Its fixed… Well, I guess thats what programing feels like…

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