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

Asked Jul 29, 2021·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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)];)

1 reply

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)]})