diff options
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: { |