I am trying to make a command that gives a different response to a specific person, for example: The bald command!
People who put it on will get a random number, but I want a friend of mine to always come out 100% bald
Can someone help me?
Hey @Emerald Rhino!
This topic has been addressed a couple times already, please use the search bar before opening a new one.
Here's the solution:
!addcom !commandName $(eval `$(user)`.toLowerCase()==`SPECIFIC_USER`.toLowerCase()?`SPECIFIC_USER_RESPONSE`:`GENERAL_RESPONSE`)
Replace the SPECIFIC_USER, SPECIFIC_USER_RESPONSE, and GENERAL_RESPONSE fields without removing the backticks (`` ```).
Yes, do you expect me to give you the full command? Because from my first reply you just need to replace content, it can't be easier than this... Look, I do it in 30 seconds, just copy/paste this in your chat:
!editcom !bald $(eval `$(user)`.toLowerCase()==`gonze`.toLowerCase()?`You're 100% bald!`:`You're ${Math.floor(Math.random()*101)}% bald!`)
Didn't find your answer? The community is on Discord.
Ask on Discord