This commit is contained in:
parent
5eedd23f9f
commit
b4bf7b3f83
2 changed files with 1 additions and 3 deletions
|
@ -3,8 +3,6 @@ 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
|
|
||||||
config.prefix = newPrefix;
|
|
||||||
// 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(config), (err) => console.error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"lol": "haha yes its funi",
|
"lol": "haha yes funi",
|
||||||
"haha yes": "haha yes"
|
"haha yes": "haha yes"
|
||||||
}
|
}
|
Loading…
Reference in a new issue