found new char to sort bots

This commit is contained in:
Lamp 2020-11-17 11:58:28 -08:00 committed by GitHub
parent 6538381e6d
commit 2fe521b05f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -50,9 +50,9 @@
}*/// didn't work D:
/*// arrange bots at bottom of list
// arrange bots at bottom of list
(async function(){
let prefix = "\udb40\uddf0";//TODO find new chars that aren't filtered
let prefix = "\u17b5";
let onNick = async member => {
if (member.user.bot && !member.displayName.startsWith(prefix))
await member.setNickname(`${prefix}${member.displayName}`.substr(0,32));
@ -61,7 +61,7 @@
dClient.on('local_guildMemberUpdate', async (oldMember, newMember) => {
if (newMember.displayName != oldMember.displayName) await onNick(newMember);
});
})();*/
})();
// prevent identical display names