process.cwd is a method not a property
All checks were successful
CI / CI (push) Successful in 1m23s

This commit is contained in:
SileNce5k 2025-05-10 15:40:03 +02:00
parent 787bfb43d4
commit abd43008b3
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -10,7 +10,7 @@ module.exports = {
description: 'Combine picture with tdoss album cover template',
async execute({ message, args }) {
let tdossDir = path.resolve(process.cwd, 'data', 'tdoss');
let tdossDir = path.resolve(process.cwd(), 'data', 'tdoss');
const directory = path.resolve(tdossDir, Math.floor(new Date).toString())
fs.mkdirSync(directory, {recursive: true})