Have you ever tried spamming ”!TP”, without realizing it's in capitals? I have got a solution to that! The current code only responds to the non-capitalized command, which makes it annoying when your caps lock is on:
- You could try to use the ”capitalize() method which returns a copy of the original string, and converts the first character of the string to a capital (uppercase) letter while making all other characters in the string lowercase letters.”
- Example: If you type ”!TP”, the code converts the command to ”!Tp” and if you type ”!tp”, the code converts the command to ”!Tp”.
This also prevents accidental, unnecessary spamming! And of course, I'm not an expert in coding. But it should give you an idea.
- You could try to use the ”capitalize() method which returns a copy of the original string, and converts the first character of the string to a capital (uppercase) letter while making all other characters in the string lowercase letters.”
- Example: If you type ”!TP”, the code converts the command to ”!Tp” and if you type ”!tp”, the code converts the command to ”!Tp”.
This also prevents accidental, unnecessary spamming! And of course, I'm not an expert in coding. But it should give you an idea.