A lot of clean up

This commit is contained in:
Dan 2025-12-31 12:50:21 +00:00
parent d89744f46f
commit 931fa141dc
62 changed files with 447 additions and 993 deletions

View file

@ -83,13 +83,44 @@ if (window.terminal) {
// ADD YOUR OWN COMMANDS BELOW THIS LINE
// ========================================
// Hidden WOW command (no description = won't show in help)
window.terminal.registerCommand("wow", "", () => {
const audio = new Audio("/audio/wow.mp3");
audio.play().catch((error) => {
window.terminal.printError("Failed to play audio: " + error.message);
});
const art = `
`;
window.terminal.print(art, "success");
});
// Template for new command:
/*
window.terminal.registerCommand('commandname', 'Command description', (args) => {
// args is an array of arguments
// Example: if user types "mycommand hello world"
// args will be ['hello', 'world']
// Print output using:
window.terminal.print('Regular text');
window.terminal.printSuccess('Success message');