Heyo. I’m trying to figure out how to create a command so when someone types something like:
“!detect magic @FakeUsername”
The result would be:
“@FakeUsername is X% magic.”
I know how to do the percentage roll. I’m just trying to figure out how to get it so the first argument and second argument can be placed in specific spots in the message. So basically, “magic” could be anything that the person types in, like “awesome” or “cool”.
Also, if someone doesn’t add a user in the second argument then it would default to the user that typed the message. So essentially defaulting to $(user) if there is no second argument.