From 5060f373538ba77474e177d94bfef4f3dc33f3cf Mon Sep 17 00:00:00 2001 From: chromakode Date: Thu, 1 Apr 2010 16:00:16 -0700 Subject: [PATCH] Add time travel jokes. --- xkcd_cli.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xkcd_cli.js b/xkcd_cli.js index b619dc9..f1a0e1d 100644 --- a/xkcd_cli.js +++ b/xkcd_cli.js @@ -518,6 +518,7 @@ TerminalShell.fallback = function(terminal, cmd) { 'kill': 'Terminator deployed to 1984', 'use the force luke': 'I believe you mean source.', 'use the source luke': 'I\'m not luke, you\'re luke!', + 'enable time travel': 'TARDIS error: Time Lord missing.', 'ed': 'You are not a diety.' }; oneliners['emacs'] = 'You should really use vim.'; @@ -547,6 +548,8 @@ TerminalShell.fallback = function(terminal, cmd) { terminal.print($('')); } else if (cmd == 'buy stuff') { Filesystem['store'].enter(); + } else if (cmd == 'time travel') { + xkcdDisplay(terminal, 630); } else if (/:\(\)\s*{\s*:\s*\|\s*:\s*&\s*}\s*;\s*:/.test(cmd)) { Terminal.setWorking(true); } else {