chomens-bot-js/util/generateEaglerUsername.js
2022-08-15 20:15:06 +07:00

14 lines
451 B
JavaScript

/* eslint-disable max-len */
names = ['Yeeish', 'Yeeish', 'Yee', 'Yee', 'Yeer', 'Yeeler', 'Eagler', 'Eagl',
'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;
}
const username = getRandomItem(names) + getRandomItem(names) + (10 + Math.floor(Math.random() * 90));
console.log(username);