forked from Supositware/Haha-Yes
This commit is contained in:
parent
b6f9df9276
commit
c8dbe442be
1 changed files with 0 additions and 12 deletions
12
hahayes.js
12
hahayes.js
|
@ -36,16 +36,4 @@ client.on("message", (message) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(message.content.startsWith(config.prefix + "prefix")) {
|
|
||||||
if (message.author.id == "267065637183029248") {
|
|
||||||
// Gets the prefix from the command (eg. "!prefix +" it will take the "+" from it)
|
|
||||||
let newPrefix = message.content.split(" ").slice(1, 2)[0];
|
|
||||||
// change the configuration in memory
|
|
||||||
config.prefix = newPrefix;
|
|
||||||
|
|
||||||
// Now we have to save the file.
|
|
||||||
fs.writeFile("./config.json", JSON.stringify(config), (err) => console.error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
client.login(config.token);
|
client.login(config.token);
|
Loading…
Reference in a new issue