From 3a660a0c1ce01e02c003d7a5a391e9c9067c7955 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Sun, 9 Apr 2023 00:14:35 +0200 Subject: [PATCH] Updated recommended node version. Added hostname to system uptime. --- .nvmrc | 2 +- src/games/uptime.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index 9f2d0e6..e048c8c 100755 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v17.0.1 +v18.15.0 diff --git a/src/games/uptime.js b/src/games/uptime.js index 4457433..cbf04d8 100755 --- a/src/games/uptime.js +++ b/src/games/uptime.js @@ -21,7 +21,7 @@ function onCommand(args, context) { const osDuration = intervalToDuration({ start: 0, end: os.uptime() * 1000 }); const osDurationString = getDurationString(osDuration); - context.sendMessage(`I've been awake for ${durationString}. My host has been running for ${osDurationString}.`, context.room.id, null, context.message.user?.recipient); + context.sendMessage(`I've been awake for ${durationString}. My host '${os.hostname()}' has been running for ${osDurationString}.`, context.room.id, null, context.message.user?.recipient); return; }