goofy-cookie-cli
Version:
A goofy cookie-themed CLI for fun
67 lines (61 loc) • 2.14 kB
JavaScript
const { printWithEmoji, colors } = require('../utils/print');
function handleBasicCommands(input, rl) {
switch(input.toLowerCase()) {
case "cookie clear":
console.clear();
break;
case "cookie exit":
rl.close();
break;
case "cookie nerd":
printWithEmoji(Math.random() > 0.5
? "🤓 Nerd cookie appears! Time to study."
: "No nerd cookies today, just chill!", colors.blue);
break;
case "cookie theme":
printWithEmoji("🍪 Cookie theme changed! (pretend it really did) 🎨", colors.purple);
break;
case "cookie help":
printWithEmoji(getHelpText());
break;
default:
return false;
}
return true;
}
function getHelpText() {
return `
🍪 Basic Cookie Commands 🍪
cookie clear - Clear the terminal
cookie exit - Exit Cookie CLI
cookie nerd - Maybe a nerd cookie appears
cookie theme - Change the cookie theme
cookie help - Show this help message
🍪 Cookie Jar Commands (inside cookie jar) 🍪
cookie bake - Bake cookies
cookie eat - Eat cookies
cookie fortune - Get a fortune cookie
cookie fun - Show fun commands (hug, pat, love, give, vibe)
cookie hug [] - Hug someone or yourself
cookie pat [] - Pat someone or yourself
cookie love [] - Send love to someone or yourself
cookie give [] - Give a cookie to someone or yourself
cookie vibe [] - Start vibing with someone or yourself
🍪 Evil Cookie Jar Commands (inside evil cookie jar) 🍪
cookie bonk [] - Bonk someone or yourself
cookie throw [] - Throw cookies at someone or everywhere
cookie fight [] - Fight with cookies with someone or yourself
cookie angry [] - Show anger at someone or yourself
cookie jealous [] - Show jealousy towards someone or yourself
🍪 Easter Egg Commands (exact matches) 🍪
cookie summon
cookie hack
cookie glitch
cookie cookie
cookie ascii
cookie self-destruct
cookie lore
cookie matrix
`;
}
module.exports = { handleBasicCommands, getHelpText };