Fix custom command
Issue was caused by wrong path.
This commit is contained in:
parent
71df7372e8
commit
201893533b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
"<prefix>custom variables - list all variables you can use"
|
||||
],
|
||||
execute({message, args, client, prefix, owners}) {
|
||||
const customPath = '../../data/customCommands.json';
|
||||
const customPath = 'data/customCommands.json';
|
||||
if(!fs.existsSync(customPath)){
|
||||
fs.writeFileSync(customPath,"[]")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue