generate eagler username profanity

This commit is contained in:
ChomeNS 2022-08-16 17:05:15 +07:00
parent 55c4e03be1
commit 81fe6317fb

View file

@ -1,5 +1,11 @@
/* eslint-disable max-len */
names = ['Yeeish', 'Yeeish', 'Yee', 'Yee', 'Yeer', 'Yeeler', 'Eagler', 'Eagl',
const profanityNames = ['Eagler', 'Eagler', 'Bitch', 'Cock', 'Milf', 'Milf', 'Yeer', 'Groon',
'Eag', 'Deevis', 'Chode', 'Deev', 'Deev', 'Fucker', 'Fucking',
'Dumpster', 'Dumpster', 'Cum', 'Chad', 'Egg', 'Fudgler', 'Fudgli',
'Yee', 'Yee', 'Yee', 'Yeet', 'Flumpter', 'Darvy', 'Darver', 'Darver',
'Fuck', 'Fuck', 'Frick', 'Eagler', 'Vigg', 'Vigg', 'Cunt', 'Darvig',
];
const names = ['Yeeish', 'Yeeish', 'Yee', 'Yee', 'Yeer', 'Yeeler', 'Eagler', 'Eagl',
'Darver', 'Darvler', 'Vool', 'Vigg', 'Vigg', 'Deev', 'Yigg', 'Yeeg'];
function getRandomItem(arr) {
@ -9,8 +15,13 @@ function getRandomItem(arr) {
return item;
}
function genUsername() {
const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90));
function genUsername(profanity) {
let username;
if (profanity) {
username = getRandomItem(profanityNames) + getRandomItem(profanityNames) + (10 + Math.floor(Math.random() * 90));
} else {
username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90));
}
return username;
}