Try supporting old versions of Node
This commit is contained in:
parent
044787e284
commit
ff61e90e8e
3 changed files with 6 additions and 2 deletions
|
@ -7,6 +7,8 @@ You should use a terminal supporting [VT100 escape codes](https://www.climagic.o
|
|||
|
||||
If you have a modern terminal, they probably have it.
|
||||
|
||||
Your version of node should be >= 12.20.0
|
||||
|
||||
Any operating systems not using Linux are not supported.
|
||||
# Installation
|
||||
```
|
||||
|
|
3
index.js
3
index.js
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
const brainlet = require("./brainlet-lib/index.js");
|
||||
const replaceAll = require("replaceall");
|
||||
const readline = require("readline").createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
|
@ -325,7 +326,7 @@ To leave this category, use '/quit'`);
|
|||
break;
|
||||
}
|
||||
|
||||
socket.send(categoryID, message.replaceAll("/newline", "\n"));
|
||||
socket.send(categoryID, replaceAll("/newline", "\n", message));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"author": "",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"readline": "^1.3.0"
|
||||
"readline": "^1.3.0",
|
||||
"replaceall": "^0.1.6"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue