-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
29 lines (27 loc) · 3.63 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function generator() {
'use strict';
const prompt = require('prompt-sync')({sigint:true});
const keywords = require('./keywords');
console.log('██╗░░░██╗░██████╗███████╗██████╗░███╗░░██╗░█████╗░███╗░░░███╗███████╗░░░░░░░██████╗░███████╗███╗░░██╗███████╗██████╗░░█████╗░████████╗░█████╗░██████╗░');
console.log('██║░░░██║██╔════╝██╔════╝██╔══██╗████╗░██║██╔══██╗████╗░████║██╔════╝░░░░░░██╔════╝░██╔════╝████╗░██║██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗');
console.log('██║░░░██║╚█████╗░█████╗░░██████╔╝██╔██╗██║███████║██╔████╔██║█████╗░░█████╗██║░░██╗░█████╗░░██╔██╗██║█████╗░░██████╔╝███████║░░░██║░░░██║░░██║██████╔╝');
console.log('██║░░░██║░╚═══██╗██╔══╝░░██╔══██╗██║╚████║██╔══██║██║╚██╔╝██║██╔══╝░░╚════╝██║░░╚██╗██╔══╝░░██║╚████║██╔══╝░░██╔══██╗██╔══██║░░░██║░░░██║░░██║██╔══██╗');
console.log('╚██████╔╝██████╔╝███████╗██║░░██║██║░╚███║██║░░██║██║░╚═╝░██║███████╗░░░░░░╚██████╔╝███████╗██║░╚███║███████╗██║░░██║██║░░██║░░░██║░░░╚█████╔╝██║░░██');
console.log('░╚═════╝░╚═════╝░╚══════╝╚═╝░░╚═╝╚═╝░░╚══╝╚═╝░░╚═╝╚═╝░░░░░╚═╝╚══════╝░░░░░░░╚═════╝░╚══════╝╚═╝░░╚══╝╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝');
console.log('\n\n\nWelcome to my username-generator\nPlease answer all the questions for meaningful results...\n(Press Ctrl+C any time to exit.)');
console.log('What is your gender? male/female/neutral(m/f/n)');
const gender = prompt('Gender: ').toLowerCase();
const frontOrBack = prompt('Do you want your input be added to the front ot back? f/b ').toLowerCase();
if(frontOrBack === 'b'){
if(gender === 'n' || gender === 'neutral' || !gender){
}
} else {
};
const restartInput = prompt('DO YOU WANT TO START AGAIN? y/n: ');
const restart = restartInput.toLowerCase();
if (restart === 'y'|| restart === 'yes'){
console.log('\n\n\n\n\n\n');
generator();
};
}
generator();