chomens-bot-js/util/generateEaglerUsername.js

17 lines
481 B
JavaScript
Raw Normal View History

2022-08-15 09:15:06 -04:00
/* 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));
2022-08-15 09:24:00 -04:00
module.exports = function () {
return username;
};