if matches[2] == target then
cecho("<cyan>\nHey, this is working!")
end
And it's working... but only when I remember to capitalize my target's name. Is there a way I can make the same trigger work without needing to capitalize the value for "target?"
Comments
target = matches[2]:title()
This will make sure your target is always capitalized. If you're set on the other way, you can use matches[2]:lower() in your trigger to make it lowercase, but to make sure your target wasn't input as upper case then you'd probably use:
if matches[2]:lower()==target:lower() then