Polar Llama said:
am not asking questions. i am requesting change
I understand that, I'm just giving my feedback on your suggestions. Am I not allowed to do that?
Polar Llama said:
maybe just do "Whtever the stuff is ".toLowerCase() . and compare it against the record. its not hard.
It's not as simple as you make it sound, parameters vary so much in nature we can't realistically expect to impose everyone to use lowercase, some users might want to do something special with uppercase, for example:
!addcom hello $(eval const q = '$(query)'; q === 'mate' ? 'Hello mate!' : q === 'MATE' ? 'STOP YELLING!!!' : 'Hello!')
That's why it falls on the person who writes the code to make it case-insensitive if they wish to.
Polar Cat said:
Nightbot can’t do anything about this because of how JavaScript works.
I made this comment because that'd mean you'd have to teach Nightbot to recognize what should be compared in lowercase, what shouldn't, etc. since JavaScript is a case-sensitive language, and far from being an AI.
Teaching Nightbot to recognize if the comparison should be made in lowercase or not can be essentially equated to a dev using .toLowerCase() in their code to tell JavaScript what to do with the data, so the solution is already there.