Updated recommended node version. Added hostname to system uptime.

This commit is contained in:
Niels Simenon 2023-04-09 00:14:35 +02:00
parent c7c0f3de2d
commit 3a660a0c1c
2 changed files with 2 additions and 2 deletions

2
.nvmrc
View File

@ -1 +1 @@
v17.0.1
v18.15.0

View File

@ -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;
}