Eval variable through invalid token error

Hi im trying to set up a slap command with random responses but keep getting invalid token messages. This is what i have typed but it doesnt work. Any advice please?
!addcom !slap $(user) just slapped $(touser) with $(eval const responses = [‘a flaming hot cannon ball’, ‘the captains hat’, ‘a piece of gold treasure’, ‘a bottle of rum’, ‘a flintlock pistol’, ‘a masterball’, ‘a wild oddish’, ‘a five guys burger’, ‘an empty dominos pizza box’, ‘puntlands peg leg’, ‘a broken compass’, ‘a footlong sausage’]; responses[Math.floor(Math.random() * responses.length)]:wink: :pirate_flag::wave:

Please ignore the wink… its ; and ) put together

Ive tried to remove a response in order to get it under 400 characters but still throws up a invalid token error saying Invalid or unexpected token [:1:20]

Ive got it working now!


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