kaogeek / kaogeek-discord-bot

Discord bot for KaoGeek, built with TypeScript
MIT License
197 stars 59 forks source link

Enhance nickname special characters detection. #209

Open ONMITSU opened 1 year ago

ONMITSU commented 1 year ago

Overview

Some users in ก้าว Geek's discord trying to modify their nickname to start with/only "!" to be sorted at the top of the user list. After this feature rollout, some users try to replace "!" with other special characters are the same range of ASCII code (e.g., $, %, *, etc.). So blocking only the exclamation mark ("!") is not enough.

I have a suggestion for blocking all special characters (ASCII code from 33 to 47) from the nickname with the mentioned condition.

Why you want this feature?

Enhance nickname validation function more effectively according to an objective.