From 496fdda80d4f82ddb2e233b0f0b504826d7a0f0a Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sat, 14 Sep 2024 21:51:08 +0300 Subject: anon channels, annon name format, wip rewrite of index.js to use classes --- commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands.js') diff --git a/commands.js b/commands.js index cf677b9..5a8200f 100644 --- a/commands.js +++ b/commands.js @@ -47,7 +47,8 @@ export const commands = { description: "Shows info about wsChat", aliases: [], command({ user, args, sendInChannel }) { - user.socket.send(`wsChat v${JSON.parse(String(fs.readFileSync("package.json"))).version}\nGithub: https://github.com/WlodekM/wsChat`); + let packagejson = JSON.parse(fs.readFileSync("package.json").toString()) + user.socket.send(`wsChat v${packagejson.version}\nGithub: https://github.com/WlodekM/wsChat`); }, }, whois: { -- cgit 1.4.1-2-gfad0