From bfc5f580ffc214cf5429c6806f93b8f614cb7f9b Mon Sep 17 00:00:00 2001 From: Mantra Date: Tue, 10 Feb 2026 17:15:44 -0500 Subject: [PATCH] Add cowsay command --- config/commands.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config/commands.js b/config/commands.js index ed3e3257..cdaf37c3 100644 --- a/config/commands.js +++ b/config/commands.js @@ -159,6 +159,24 @@ const commands = { term.stylePrint(`(Robot voice): ${message}`); }, + cowsay: function (args) { + const message = args.join(" ") || "moo"; + const msgLen = message.length; + const top = " " + "_".repeat(msgLen + 2); + const bottom = " " + "-".repeat(msgLen + 2); + const cow = [ + `< ${message} >`, + bottom, + " \\ ^__^", + " \\ (oo)\\_______", + " (__)\\ )\\/\\", + " ||----w |", + " || ||", + ]; + term.writeln(top); + cow.forEach((line) => term.writeln(line)); + }, + pwd: function () { term.stylePrint("/" + term.cwd.replaceAll("~", `home/${term.user}`)); },