Unexpected identifier

Hello! I’ve been playing around with this command, at one time I had it working, but now it’s just returning with “unexpected identifier” Any help would be awesome!

!editcom !slap $(user) has slapped $(touser) with a $(eval a=[a blue teapot near the window, a glizzy, crack rock, the groundhog that keeps bothering Daze, 2 cans, my will to live]a[Math.floor(Math.random()*a.length)])

Hiya, you forgot closing the array of items: ;

!editcom !slap $(user) has slapped $(touser) with a $(eval a=[`a blue teapot near the window`, `a glizzy`, `crack rock`, `the groundhog that keeps bothering Daze`, `2 cans`, `my will to live`]; a[Math.floor(Math.random()*a.length)])
1 Like

AH! Thank you so much! I stared at that for so long.

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