forked from Supositware/Haha-Yes
This commit is contained in:
parent
f3aaca3369
commit
6b6dda4cee
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@ exports.run = (client, message, args) => {
|
||||||
if (message.author.id == "267065637183029248") {
|
if (message.author.id == "267065637183029248") {
|
||||||
// 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];
|
||||||
|
// change the configuration in memory
|
||||||
|
commands.prefix = newPrefix;
|
||||||
// Now we have to save the file.
|
// Now we have to save the file.
|
||||||
fs.writeFile(".././config.json", JSON.stringify(newPrefix), (err) => console.error);
|
fs.writeFile(".././config.json", JSON.stringify(config), (err) => console.error);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue