chomens-bot-js/util/generateEaglerUsername.js

30 lines
1 KiB
JavaScript
Raw Normal View History

2022-08-15 09:15:06 -04:00
/* eslint-disable max-len */
2022-08-16 06:05:15 -04:00
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',
2022-08-15 09:15:06 -04:00
'Darver', 'Darvler', 'Vool', 'Vigg', 'Vigg', 'Deev', 'Yigg', 'Yeeg'];
function getRandomItem(arr) {
const randomIndex = Math.floor(Math.random() * arr.length);
const item = arr[randomIndex];
return item;
}
2022-08-16 06:05:15 -04:00
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));
}
2022-08-15 09:15:06 -04:00
2022-08-15 09:24:00 -04:00
return username;
2022-08-15 09:46:04 -04:00
}
module.exports = genUsername;