Updated recommended node version. Added hostname to system uptime.
This commit is contained in:
@@ -21,7 +21,7 @@ function onCommand(args, context) {
|
|||||||
const osDuration = intervalToDuration({ start: 0, end: os.uptime() * 1000 });
|
const osDuration = intervalToDuration({ start: 0, end: os.uptime() * 1000 });
|
||||||
const osDurationString = getDurationString(osDuration);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user