Compare commits

..

2 Commits

Author SHA1 Message Date
Niels Simenon 834ccc3ea0 1.24.1 2023-04-09 00:14:38 +02:00
Niels Simenon 3a660a0c1c Updated recommended node version. Added hostname to system uptime. 2023-04-09 00:14:35 +02:00
4 changed files with 5 additions and 5 deletions

2
.nvmrc
View File

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

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "schat2-clive",
"version": "1.24.0",
"version": "1.24.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.24.0",
"version": "1.24.1",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{
"name": "schat2-clive",
"version": "1.24.0",
"version": "1.24.1",
"description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js",
"scripts": {

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