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

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