Username normalization #10
Labels
No Label
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NLL/Heimdallr#10
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a guild-toggleable feature that allows admins to use the bot to normalise usernames, according to Unicode normalisation rules. This results in some ridiculous Unicode usernames to become a bit more normal.
Python's standard library has a unicode module that lets us do this pretty easily.
So no need to run it throug regex filters? Nice 😌
Nope! It's just a matter of storing the setting for a guild in the database, and when the bot gets an even of someone joining the server, or a user/nick change event, we can check the DB and use this function in Python's stdlib