Update main.js.download

This commit is contained in:
Adil Sadqi 2024-04-07 00:27:45 +00:00 committed by GitHub
parent 7241e35e7b
commit b3e4643142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

View File

@ -244,6 +244,23 @@ function commander(cmd) {
prankFriends();
break;
case "pin":
// Function to generate a random 8-digit PIN
function generatePIN() {
var pin = "";
for (var i = 0; i < 8; i++) {
pin += Math.floor(Math.random() * 10); // Append a random digit (0-9) to the PIN
}
return pin;
}
// Call the generatePIN function to get the PIN
var generatedPIN = generatePIN();
// Display the generated PIN
addLine("Your generated PIN is: " + generatedPIN, "color2", 80);
break;
case "sudo":
addLine("Oh no, you're not admin...", "color2", 80);
addLine("---------------------------","color2", 80);