Right-hand side of 'instanceof' is not an object, still need help

I like making meme commands for my Skyrim stream and I have looked at so many posts, not sure what I’m still doing wrong with this code

!commands add !whatif $(eval const responses = [’:flushed: on the Dragonsreach balcony :flushed:’, β€˜:flushed: in the Riften Ratways :flushed:’, β€˜:flushed: in the Dragonborn Gallery :flushed:’, β€˜:flushed: In the Dark Brotherhood Sanctuary :flushed:’, β€˜:flushed:in the Hall of the Elements :flushed:’, β€˜:flushed: Under the Eldergleam Tree :flushed:’, β€˜:flushed: in Castle Dour :flushed:’, β€˜:flushed: on top of Bards Leap :flushed:’] responses[Math.floor(Math.random() * responses.length)]:wink:

@encyclochameleon

!addcom -cd=5 !whatif :flushed: $(eval a=[`on the Dragonsreach balcony`,`in the Riften Ratways`,`in the Dragonborn Gallery`,`In the Dark Brotherhood Sanctuary`,`in the Hall of the Elements`,`Under the Eldergleam Tree`,`in Castle Dour`,`on top of Bards Leap`];a[Math.floor(Math.random()*a.length)]) :flushed:

now it just says β€œ:flushed: Right-hand side of β€˜instanceof’ is not an object :flushed:”

Adding the command seems to work through chat:

Try adding the command through chat again, or perhaps try adding the command through the Nightbot dashboard.

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