diff options
author | WlodekM <[email protected]> | 2024-09-14 21:51:08 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-09-14 21:51:08 +0300 |
commit | 496fdda80d4f82ddb2e233b0f0b504826d7a0f0a (patch) | |
tree | e7f5f7cccfe5289ee4592c5116a1d4c95c2872bc /commands.js | |
parent | 0d841c1c4d6853bd43eb575c55a57f3de675f88b (diff) |
anon channels, annon name format, wip rewrite of index.js to use classes
Diffstat (limited to 'commands.js')
-rw-r--r-- | commands.js | 3 |
1 files changed, 2 insertions, 1 deletions
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: { |