UNPKG

goofy-cookie-cli

Version:

A goofy cookie-themed CLI for fun

67 lines (61 loc) 2.14 kB
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 [@user] - Hug someone or yourself cookie pat [@user] - Pat someone or yourself cookie love [@user] - Send love to someone or yourself cookie give [@user] - Give a cookie to someone or yourself cookie vibe [@user] - Start vibing with someone or yourself 🍪 Evil Cookie Jar Commands (inside evil cookie jar) 🍪 cookie bonk [@user] - Bonk someone or yourself cookie throw [@user] - Throw cookies at someone or everywhere cookie fight [@user] - Fight with cookies with someone or yourself cookie angry [@user] - Show anger at someone or yourself cookie jealous [@user] - 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 };