This commit is contained in:
Loïc Bersier 2018-09-06 19:22:47 +02:00
parent b4bf7b3f83
commit f3aaca3369

View file

@ -4,6 +4,6 @@ exports.run = (client, message, args) => {
// Gets the prefix from the command (eg. "!prefix +" it will take the "+" from it) // Gets the prefix from the command (eg. "!prefix +" it will take the "+" from it)
let newPrefix = message.content.split(" ").slice(1, 2)[0]; let newPrefix = message.content.split(" ").slice(1, 2)[0];
// Now we have to save the file. // 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);
} }
} }