Skip to content

Commit

Permalink
changed welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
willow385 committed Jun 22, 2022
1 parent 9d8cdc9 commit a2d408f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let global = {
baseURL: "https://mudnix.dantefalzone.repl.co",
frontendVersion: "0.5.1",
frontendVersion: "0.5.2",
backendVersion: null,

messageEventSource: null,
Expand All @@ -18,6 +18,7 @@ let global = {

helpMessages: {
"help": "print a list of all commands",
"clear": "try it and see ;)",
"echo \"<string>\"": "prints <string> to stdout",
"sha256 \"<string>\"": "prints the SHA-256 hash of <string> to stdout",
"new-user": "create a new account",
Expand All @@ -37,6 +38,14 @@ let global = {
activeTreasureChest: null
};

const mudnixAsciiArt = `\
███╗ ███╗██╗ ██╗ ██╗███╗ ██╗██╗██╗ ██╗
████╗ ████║██║ ██║ ██║████╗ ██║╚═╝╚██╗██╔╝
██╔████╔██║██║ ██║ ██████║██╔██╗ ██║██║ ╚███╔╝
██║╚██╔╝██║██║ ██║██╔══██║██║╚██╗██║██║ ██╔██╗
██║ ╚═╝ ██║╚██████╔╝╚██████║██║ ╚████║██║██╔╝ ██╗
╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═╝`;

function getCredentials(term, usernamePrompt, passwordPrompt, callback) {
term.read(usernamePrompt).then(function(username) {
global.user.username = username;
Expand Down Expand Up @@ -387,7 +396,7 @@ function setUpTerminal() {
"w": whosHere

}, {
greetings: `Welcome to Mudnix
greetings: `${mudnixAsciiArt}
Client v${global.frontendVersion} backend v${global.backendVersion} (pre-alpha)
${global.divider}
Type "new-user" to create a new account.
Expand Down

0 comments on commit a2d408f

Please sign in to comment.