Move checking if customCommands exists to main cmd
This commit is contained in:
parent
8211d67326
commit
67f674c92b
2 changed files with 4 additions and 3 deletions
|
@ -13,6 +13,10 @@ module.exports = {
|
|||
"<prefix>custom list - list all custom commands"
|
||||
],
|
||||
execute({message, args, client}) {
|
||||
const customPath = './data/customCommands.json';
|
||||
if(!fs.existsSync(customPath)){
|
||||
fs.writeFileSync(customPath,"[]")
|
||||
}
|
||||
let sendText;
|
||||
if (args){
|
||||
let customName = args[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue