Trying to set up a command with a constant eval for the broadcaster but variables for any other user

Here is the code I have so far, I am unsure how to do it and would like some help!

$(eval var me = “$(user)” ; var u = “$(user)” ; u = “$(touser)” ; if (me === “UsaUsaChu” && u==“UsaUsaChu”) { “UsaUsaChu has the BEEGest Carrot” ;} else $(eval const responses = [‘1Inch’, ‘2 Inches’, ‘3 Inches’, ‘4 Inches’, ‘5 Inches’, ‘6 Inches’, ‘7 Inches’, ‘8 Inches’, ‘9 Inches’, ‘10 Inches’, ‘11 Inches’, ‘12 Inches’, ‘0 Inches’, ‘Unlimited Inches’, ‘.5 Inch’, ‘Average Inches’, ‘I have Vagona’ ];responses[Math.floor(Math.random() * responses.length)]:wink:

You were close

$(eval me=`$(user)`;u=`$(touser)`;if((me==`UsaUsaChu`&&u==`UsaUsaChu`)||u=`UsaUsaChu`){`UsaUsaChu has the BEEGest Carrot`}else{R=`1 Inch,2 Inches,3 Inches,4 Inches,5 Inches,6 Inches,7 Inches,8 Inches,9 Inches,10 Inches,11 Inches,12 Inches,0 Inches,Unlimited Inches,0.5 Inches,Average Inches,I have Vagona`.split(`,`);R[Math.floor(Math.random()*R.length)]})

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