JavaBot
JavaBot copied to clipboard
fix pingable name listener
This PR changes the PingableNameListener (which never really worked before) in the following ways:
- It only changes names of users if the bot has the permission to "interact" with the user (i.e. the bot roles are "above" the user) and not vice-versa.
- Instead of requiring the first 3 characters to be in a alphanumeric range, it requires names to have at least 3 alphanumerical (including underscores) characters.
- Logs are sent to the message log to not spam the moderation log.
- The bot stops adding numbers at the end of generated names.