Updated recommended node version. Added hostname to system uptime.
This commit is contained in:
parent
c7c0f3de2d
commit
3a660a0c1c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue