From f8d654b1167f8949fb977d3309a55e76fb3db470 Mon Sep 17 00:00:00 2001 From: Asraelite Date: Mon, 5 Jun 2023 11:42:57 +0000 Subject: [PATCH] Update messages --- server/game/names.json | 8 ++++++-- server/game/room/messages.json | 33 +++++++-------------------------- server/interface.js | 11 ++++++----- 3 files changed, 19 insertions(+), 33 deletions(-) diff --git a/server/game/names.json b/server/game/names.json index f3551f2..235b262 100644 --- a/server/game/names.json +++ b/server/game/names.json @@ -70,6 +70,7 @@ "Pomegranate", "Pomelo", "Quince", + "Quandong", "Raspberry", "Salmonberry", "Rambutan", @@ -188,8 +189,11 @@ "Porous" ], "q": [ - "Quivering", - "Queer" + "Quirky", + "Quiet", + "Quintessential", + "Questioning", + "Quaint" ], "r": [ "Radical", diff --git a/server/game/room/messages.json b/server/game/room/messages.json index 2bbb260..b28c946 100644 --- a/server/game/room/messages.json +++ b/server/game/room/messages.json @@ -1,10 +1,8 @@ { "roomEnter": [ - "@ has entered the room, the cunt.", "Oh, looks like @ decided to show up.", "Here comes @.", "Guys, it's over, @ is here", - "What a great time we're having. Aw crap, here's @.", "@ has entered the room.", "Some guy by the name of @ decided to show up.", "A wild @ appeared!", @@ -12,43 +10,26 @@ "Look out it's @!", "@ has come for a visit.", "Out of nowhere, @ arrives.", - "@ has penetrated the room.", "@ showed up.", "Good news, everyone, @ is here.", "@ joined the room.", "@ has arrived to play with y'all.", - "@ entered the room, the audacity.", "Someone let @ in again.", "@ has decided to participate.", "@ joined the game.", - "You know @, the weird one? Yeah, he just joined.", "Uh-oh spaghetti-o, it's @.", - "@ joined the room :/", - "May as well leave now, @ just joined.", + "@ joined the room", "@ decided to turn up.", "@ has popped by for a visit.", - "And like that annoying friend who won't go away, @ arrives.", - "@ now arrives, run for your lives", - "@ joined the room. This is a \"good\" thing.", - "For fuck's sake, @ has joined again.", - "Well great, @ entered the room.", - "@ has entered the room, hopefully they'll leave soon.", - "@ didn't listen when we told them to go away and has joined.", - "@ has entered the game. They actually did it. Wow.", - "@ entered the room, but maybe it won't be as bad as last time.", - "Everybody clap for @, the shithead who has joined the room.", - "@ has come by for a visit. Joy of joys." + "@ now arrives, run for your lives.", + "@ has come by for a visit." ], "roomLeave": [ - "@ has left, finally.", + "@ has left.", "@ has left the room.", - "@ finally decided to leave.", - "@ is now gone, good ridance.", - "@ disconnected. Good.", - "After much waiting, @ has finally left.", + "@ decided to leave.", + "@ disconnected.", "@ is gone. Hopefully it'll stay that way.", - "Thankfully @ has left the room.", - "@ has exited the game :)", - "@ left. Now hope they don't come back." + "@ has exited the game :)" ] } diff --git a/server/interface.js b/server/interface.js index 6c3a5e0..e495268 100644 --- a/server/interface.js +++ b/server/interface.js @@ -27,7 +27,7 @@ class ServerInterface { output = timestamp.gray + output; // Clear and go to start of line. console.log('\x1b[2K\x1b[999D' + output); - fs.appendFile(this.logfile, timestamp + msg + '\n'); + fs.appendFile(this.logfile, timestamp + msg + '\n', () => {}); } debug(msg) { @@ -48,10 +48,11 @@ class ServerInterface { get timestamp() { let d = new Date(); - return `<${pad(d.getUTCHours(), 2)}:` + - `${pad(d.getUTCMinutes(), 2)}:` + - `${pad(d.getUTCSeconds(), 2)}.` + - `${pad(('' + d.getUTCMilliseconds()).slice(0, 2), 2, true)}> `; + return '<' + d.toISOString() + '> '; + //return `<${pad(d.getUTCHours(), 2)}:` + + // `${pad(d.getUTCMinutes(), 2)}:` + + // `${pad(d.getUTCSeconds(), 2)}.` + + // `${pad(('' + d.getUTCMilliseconds()).slice(0, 2), 2, true)}> `; } get logfile() {