From f3aaca33699d3dde37da1fc6f39b18ac7697c0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Thu, 6 Sep 2018 19:22:47 +0200 Subject: [PATCH] --- commands/prefix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/prefix.js b/commands/prefix.js index 6d4659b5..cdbb946e 100644 --- a/commands/prefix.js +++ b/commands/prefix.js @@ -4,6 +4,6 @@ exports.run = (client, message, args) => { // Gets the prefix from the command (eg. "!prefix +" it will take the "+" from it) let newPrefix = message.content.split(" ").slice(1, 2)[0]; // Now we have to save the file. - fs.writeFile(".././config.json", JSON.stringify(config), (err) => console.error); + fs.writeFile(".././config.json", JSON.stringify(newPrefix), (err) => console.error); } } \ No newline at end of file