Fix custom command

Issue was caused by wrong path.
This commit is contained in:
SileNce5k 2021-07-18 15:05:29 +02:00
parent 71df7372e8
commit 201893533b
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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,"[]")
}