From 6834b13ad9a7647947ee6d6f871180b8c019841b Mon Sep 17 00:00:00 2001 From: ophiuchus44 Date: Mon, 29 Apr 2024 15:02:22 -0400 Subject: [PATCH] added ascii rick roll in terminal instead of opening gif in new window --- config/commands.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/commands.js b/config/commands.js index 03225114..f02baa00 100644 --- a/config/commands.js +++ b/config/commands.js @@ -92,7 +92,7 @@ const commands = { }, test: function() { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + term.command("curl --max-time 6 -s ascii.live/rick") }, email: function() { @@ -242,7 +242,7 @@ const commands = { term.stylePrint(`No such file: ${filename}`); } if (filename == "id_rsa") { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + term.command("curl --max-time 6 -s ascii.live/rick") } }, @@ -251,7 +251,7 @@ const commands = { const filename = args[1]; if (filename == "id_rsa") { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + term.command("curl --max-time 6 -s ascii.live/rick") } if (!q || !filename) { @@ -357,7 +357,7 @@ const commands = { term.stylePrint("%open%: open a file - usage:\r\n"); term.stylePrint("%open% test.htm"); } else if (args[0].split(".")[0] == "test" && args[0].split(".")[1] == "htm") { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + term.command("curl --max-time 6 -s ascii.live/rick") } else if (args[0].split(".")[1] == "htm") { term.openURL(`./${args[0]}`, false); } else if (args.join(" ") == "the pod bay doors") {