diff --git a/README.md b/README.md index 38e7520..8368a55 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/index.js b/index.js index 4a92c64..3d466e1 100644 --- a/index.js +++ b/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)); } } } diff --git a/package.json b/package.json index 962707a..f0e1d5b 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "author": "", "license": "GPL-3.0-or-later", "dependencies": { - "readline": "^1.3.0" + "readline": "^1.3.0", + "replaceall": "^0.1.6" } }